[R] Correlation coefficient of large data sets

Joshua Wiley jwiley.psych at gmail.com
Tue Mar 16 07:06:42 CET 2010


I think what you have done should be fine.  read.table() will return a
data frame, which cor() can handle happily.  For example:

my.data <- read.table("file.csv", header = TRUE, row.names = 1,
sep=",", strip.white = TRUE) # assign your data to "my.data"

cor(my.data) # calculate the correlation matrix between all variables
(columns) of my.data

What happens if you try that?



More information about the R-help mailing list