[R] Warning message

Peter Dalgaard pdalgd at gmail.com
Mon May 10 09:01:56 CEST 2010


Shant Ch wrote:

> Warning messages:
> 1: In if (freq) x$counts else { :
>   the condition has length > 1 and only the first element will be used
...
> hist(W,breaks=20,probability=T)

A variable called "T" lying around with length(T) != 1 ?

Try probability=TRUE instead.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list