sollano/forestmangr

Error while using 'species_aggreg'

Opened this issue · 2 comments

Hello, I am using this package for community ecology data analysis. While trying to run species aggregate I am getting the following error
Error in if (round(Si/Mi, 1) == 1) { :
missing value where TRUE/FALSE needed
I have two data frames for two habitats, for one it worked well but for the other the error is persistent. All other analysis worked well only with aggregate I am getting this error. I am unable to locate the issue. Please help.

image

Hello @bharaticg , could you check if you have NAs in your dataset? Try removing them. This error seems to indicate that NAs are entering if statement inside the function.