Re: [R] na.rm problem

2006-08-01 Thread Ulrich Keller
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

[R] na.rm problem

2006-07-31 Thread sonal
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