[R] R hangs when hist() gets vector with a single value

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jul 28 01:18:07 CEST 1999

Victor.Barajas at HSC.com writes:

> Hi, I'm not sure if this is a bug or due to my ignorance of R syntax.  I'm using
> hist() to plot a sample set of data, some sets contain the same  value (i.e.
> 3000, 3000, 3000, 3000).  I find that hist() hangs when It gets to sets with a
> single value.  ....help ?                ...victor

Version? There was a bug of the sort some time ago, but recent
versions seem to have no trouble doing e.g. hist(rep(10,10))

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list