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?

______________________________________________
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.

Reply via email to