Thank you a lot A.K.! One more question:
I'd like to compute the Spearman's rank correlation coefficients for V1 (from dat1) and V1 (from dat2) and so on... Do you know how to do that? I managed to write the Pearson's correlation product moment coefficient with your sapply-approach, but I have no idea how to rank it. Kind regards -- View this message in context: http://r.789695.n4.nabble.com/calculate-with-different-columns-from-different-datasets-tp4674918p4675034.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.