[R] histogram error: 'x' must be numeric

From: jia ding <dingjia_at_gmail.com>
Date: Sat 11 Feb 2006 - 00:43:37 EST


Hi All,

I have problem to plot histogram.

What I did is:

export a .csv file from PSQL database's table. so, inside this .csv file it looks like:

31.845
24.598
29.1223
24.715
23.1847
24.2321
25.2995
23.4261
30.7873
......

Then, I use command:
score<- read.csv('file.csv', header = FALSE,sep = ",") hist(score, main = "score")

it gives error msg:
Error in hist.default("score", main = "score") :

        'x' must be numeric

Can any of you know about it explain me why?

Thanks a lot.

Nina

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Feb 11 00:48:45 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:27 EST