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

2006-02-10 Thread jia ding
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 = ,)

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

2006-02-10 Thread Barry Rowlingson
jia ding wrote: 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? Have a look at 'score' in R