alicelinder / senior-moment

Senior thesis on range extremes of deciduous trees in the northeastern US
0 stars 0 forks source link

HIGH PRIORITY: Fig. 4: 3D Model of suites of traits across latitudinal range (1/4) #13

Closed alicelinder closed 7 years ago

alicelinder commented 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.

lizzieinvancouver commented 7 years ago

Check out documentation in aggregate:

?aggregate

The command is different than summations or means. Try na.action=na.omit.