I'm trying to calculate rarefied species richness for data set which looks something like https://ibb.co/bZeALk this. I read the .csv file into R and it was converted to a data frame. Now when I try to operate on it, I always end up with error messages like "Error in round(x) : non-numeric argument to mathematical function". What do I do wrong? I'm setting the sample size as the smallest community size. I'm setting MARGIN=2.
By the way, my goal is to compare these different counts from different years in terms of their diversity and I wanted to use rarefied richness too. They are from the same place but from different years.