[R] Warning message

Peter Dalgaard
Mon, 10 May 2010 07:01:56 -0000

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