Closed alicelinder closed 7 years ago
Having trouble with code on finding means of traits at each site for each species. How do I use aggregate while having NAs? I put na.rm=TRUE at the end of the function, but I still get warnings and it inserts "NaN" into the dataframe.
Check out documentation in aggregate:
?aggregate
The command is different than summations or means. Try na.action=na.omit.
Having trouble with code on finding means of traits at each site for each species. How do I use aggregate while having NAs? I put na.rm=TRUE at the end of the function, but I still get warnings and it inserts "NaN" into the dataframe.