Like the error message tells you, cor does not have an argument na.rm.
use=complete already does what you want, namely casewise deletion of
missing values.
However, this will not work with vectors of unequal length (how is R to
determine which observations in x correspond to those in y?). What
hi,
i am a new member.
i am using R in finding correlation between two variables of unequal length.
when i use
cor(x,y,na.rm=T,use=complete)
where x has observations from 1928 to 2006 y has observations from 1950 to
2006. I used na.rm=T to use the complete observations. So missing values