To simplify, I have a dataset that looks like this:
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 also tried na.action = na.exclude etc. No, it seems to work. It would be very helpful to know what the problem is and how I can fix it. Thanks.
source share