veepsirtt wrote:
corr <- cor(s1,s2) Error in cor(s1, s2) : incompatible dimensions
Check lenghts of your series. cor(c(1,2),c(1,2,3)) #Error in cor(c(1, 2), c(1, 2, 3)) : incompatible dimensions Dieter
View this message in context: http://r.789695.n4.nabble.com/Finding-the-correlation-coefficient-of-two-stocks-tp3246992p3247042.html Sent from the R help mailing list archive at Nabble.com.