On Fri, 23-May-2008 at 08:40PM -0700, amarjit singh sethi wrote:
|> Dear all,
|> I am quite new to R; facing certain problems:
|> Say, I have a text file( named as "try"):
|> > idt=read.table(df,header=T, sep="\t")
|> > idt
|> Year C1 C2 C3 C4 C5 C6
|> 1 Y1 3.5 13.8 9.5 6.8 0.4
Dear AJSS,
The problem is that the way you've read the data, the first column of
the data frame is a factor, not a numerical variable, and thus is not
suitable for computing correlations.
You could use the command cor(idt[,-1]) to compute correlations on all
but the first column, but your
2 matches
Mail list logo