aa file isï¼ x 1 NA 2 y 1 NA 3 and r program is > aa<-read.table("aa",row.names=1) > bb<-cor(t(aa),method = "pearson",use="pairwise.complete.obs") > bb x y x 1 1 y 1 1
i am confused why the pearson correlation coefficients between x and y is 1 [[alternative HTML version deleted]]
______________________________________________ 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.