To simplify, I have a data set which is as follows:
b <- 1:6
# > b
# [1] 1 2 3 4 5 6
jnk <- c(2, 4, 5, NA, 7, 9)
# > jnk
# [1] 2 4 5 NA 7 9
When I try:
cor(b, jnk, na.rm=TRUE)
I get:
> cor(b, jnk, na.rm=T)
Error in cor(b, jnk, na.rm = T) : unused argument (na.rm = T)
I've also tried na.action = na.exclude
, etc. None seem to work. It'd be really helpful to know what the issue is and how I can fix it. Thanks.
R
is the inconsistency w.r.t.na.rm
and its variants... – Rodman