[R] Histogram

duraikannan sundaramoorthi dkannan41 at yahoo.com
Wed Jan 5 00:37:16 CET 2005


I have data on a single variable LOGT. It has about
300,000 observations. I am trying to make a Histogram
out of this data set. Following is my effort. Could
anyone help me to solve this error.


> hist(x)
Error in hist.default(x) : `x' must be numeric
> class(x)
[1] "data.frame"
> is.object(x)
[1] TRUE
> is.vector(x)
[1] FALSE
> is.numeric(x)
[1] FALSE
> is.factor(x)
[1] FALSE

note:plot(x) works okay

durai




More information about the R-help mailing list