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
Dear all,
I am quite new to R; facing certain problems:
Say, I have a text file( named as "try"):
YearC1 C2 C3 C4 C5 C6
Y1 3.5 13.89.5 6.8 0.4 24.2
Y2 3.8 13.99.9 7.6 0.7 12.8
Y3 4.5 14.514.29.2 0.6
3 matches
Mail list logo