Error input data must be numeric, how to solve it?
I am trying to perform Alpha diversity for microbiome analysis in R, I got an error when ASV file is the input data although it has numeric values:
Error in diversity(ASV, index = "shannon") : input data must be numeric
What is the package you're trying to use here? What does your data look like? It is an
Excel
file? Is it aCSV
file? Or has this "ASV" data been loaded into the environment already?The data is text file (I opened it as csv to show you) and it looks like that