Skip to content
Prev 311306 / 398506 Next

Coefficient of Variation, NA, Aggregate

Hello helpers,

I have a two part issue. FIRSTLY, I am attempting to write a function
for coefficient of variation, using
This is not working because some of my columns have NAs. When I try to use
Error in co.var(rowleyi$TL, na.rm = TRUE) :
  unused argument(s) (na.rm = TRUE)

I do not know what this means. How can I get this function to work?
SECONDLY, how can I then get that function to work within an
aggragate? Do I still use
Thank you!
Amanda Jones