[R] R help
murdoch at stats.uwo.ca
Tue Apr 29 12:35:39 CEST 2008
On 28/04/2008 9:47 PM, Debasish Roy wrote:
> I tried to read a dataset and then draw a histogram with a freqeuncy density curve fitted on the top of this.
> I used the command
> res <- read.table("C:/Documents and Settings/db/Desktop/res.dat")
> and found
> V1 V2 V3 V4 V5
> 1 -0.4806 0.5075 0.0491 -0.7985 -0.666
> Then I got the following when I troied to plot it
> Error in hist.default(res) : 'x' must be numeric
> Even I tried
> which is showing a blank plot.
I'd guess it's not a blank plot, it's simply a histogram with one big
bar taking up the whole of the plot. As others have mentioned, you only
have one observation in each column.
By the way, using a more informative subject line would be helpful.
Most of the messages in the R-help mailing list are about R help.
> My suspision is something is wrong in the way the data was read (with V1, V2, V3 etc). Can someone please help me how to get rid of this problem ?
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help