Dear all,
I have written the following code for correlation calculations. I want to
create a new matrix from corData) with correlation more than 0.5 only and
the rest of the columns should be removed. How can I do it?
set.seed(1234)
data<-matrix(rnorm(100),nrow=10)
data[,1]<-100*(data[,2]+data[,5]+data[,9])
corData<-cor(data)
Thanks a lot
Nico
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.