[Rd] erroneous warning in hist (PR#9408)

From: <alex.deckmyn$oma.be_at_pubhealth.ku.dk>
Date: Mon 04 Dec 2006 - 10:21:44 GMT


Full_Name: Alex Deckmyn
Version: 2.4.0
OS: linux
Submission from: (NULL) (193.190.63.62)

specifying the "right" option in hist results in a warning when plot=F. The option is taken into account correctly, but a warning is issued anyway. When plot=T there is no warning.

> hist(c(1,1.5),breaks=0:4)$counts

[1] 1 1 0 0
> hist(c(1,1.5),breaks=0:4,right=T)$counts
[1] 1 1 0 0
> hist(c(1,1.5),breaks=0:4,plot=F)$counts
[1] 1 1 0 0
> hist(c(1,1.5),breaks=0:4,right=T,plot=F)$counts
[1] 1 1 0 0
Warning message:
argument 'right' is not made use of in: hist.default(c(1, 1.5), breaks = 0:4, right = T, plot = F)
> hist(c(1,1.5),breaks=0:4,right=F,plot=F)$counts
[1] 0 2 0 0
Warning message:
argument 'right' is not made use of in: hist.default(c(1, 1.5), breaks = 0:4, right = F, plot = F)
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Dec 04 21:25:30 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 04 Dec 2006 - 18:30:54 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.