I'll have to guess that you are using diversity() from the vegan package . and that the source delim.txt file and Phylum are the same and contain either a lack of numeric variables or a mix of character and numeric variables.
The function signature requires its argument to be
Community data, a matrix-like object or a vector.
Matrices cannot mix classes--all numeric or all character.
I just figured that out but now it looks like the data looks incomplete (there is no full list of 52 variables), though it says it is there when I designated H. Does this look right or am I missing something? If it's correct, what should my next step be? Sorry I'm new at this
library(vegan)
data("Phylum")
diversity(Phylum, index = "shannon")
[1] 1.628674 1.532272 1.528529 1.564969 1.472072 1.496428 1.557890 1.641973
[9] 1.867042 1.859811 1.850034 1.827769
View(Phylum)
H <- diversity(Phylum, index = "shannon")
Hello,
I would like to study specific diversity between several Islands. I have a problem with the constitution of my data. So, I can't use the "vegan" package.
I put Islands as individuals (the name of the cells) and Order, Family Gender and Species as variable. Can you explain to me how to put together the data table?
The idea is to study the diversity and the similarity among Islands and endemism.
thank you for helping me
I also suggest that you repost this as a new topic. A reprex isn't needed, because this isn't yet a coding question. It would help if you would confirm that
All your variables are character
They can be referred to as
islands
order
family
species
gender
and an idea of how many records you will be using and the form in which the data is now.