[R] " 'x' must be numeric"

Naiara S. Pinto naiara at mail.utexas.edu
Sat Jan 21 01:17:32 CET 2006


Hello all,

I am importing data from a txt file and try to get a histogram, I get the
message: "Error in hist: 'x' must be numeric".
When I use mode R returns "List".
However when I use srt I get:
`data.frame':   456 obs. of  1 variable:
 $ V1: num  0.6344 0.4516 0.0968 0.7634 0.7957 ...
My file consists of one column only (no headers) and I can't figure out
why I am getting this error message. Why does this happen?

Thanks!

Naiara.

--------------------------------------------
Naiara S. Pinto
Ecology, Evolution and Behavior
1 University Station A6700
Austin, TX, 78712




More information about the R-help mailing list