sollano / forestmangr

R package for forest mensuration and management
Other
16 stars 8 forks source link

Error while using 'species_aggreg' #2

Open bharaticg opened 4 years ago

bharaticg commented 4 years ago

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

sollano commented 3 years ago

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.

bharaticg commented 3 years ago

Thank you very much for your response. I will check for that.

Regards Bharati

On Thu, Oct 22, 2020 at 8:26 PM Sollano Rabelo Braga < notifications@github.com> wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sollano/forestmangr/issues/2#issuecomment-714552147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALF6EXDY3ZC6OAKITISUT33SMBBZTANCNFSM4PH47U2Q .