Hi Rui,
Thanks. It was my fault. I had both of these saved (read.table (),
data.frame(read.table()). I think I accidentally pasted the second one, and
got the error.
A.K.
- Original Message -
From: Rui Barradas
To: arun
Cc: r-help
Sent: Wednesday, August 1, 2012 9:41 AM
Subj
HI,
The code was working perfectly fine yesterday and today, until half an hour
ago. Couldn't find any problems in the code. Still, I am getting error message.
myMatrix <- data.matrix(read.table(text="
Name Age
ANTONY 27
IMRAN 30
RAJ 22
NAHAS
Hello,
Because there's a bug in the way I read the data: data.matrix is not
well used here, it transforms all variables in character vectors and may
cause problems such as
> "9" < "10"
[1] FALSE
> "9" > "10"
[1] TRUE
It was David Winsemius that pointed this out.
As a side effect, data.matrix
3 matches
Mail list logo