alex.deckmyn$oma.be at pubhealth.ku.dk
2006-Dec-04 10:21 UTC
[Rd] erroneous warning in hist (PR#9408)
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)>
This seems to be the same as o hist(*, include.lowest=., right=., plot=FALSE) does not warn anymore, (PR#9356) and more. already fixed in R-patched. On Mon, 4 Dec 2006, alex.deckmyn$oma.be at pubhealth.ku.dk wrote:> 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
maechler at stat.math.ethz.ch
2006-Dec-04 14:23 UTC
[Rd] erroneous warning in hist (PR#9408)
>>>>> "AlexD" == oma be <alex.deckmyn> >>>>> on Mon, 4 Dec 2006 11:21:44 +0100 (CET) writes:AlexD> Full_Name: Alex Deckmyn Version: 2.4.0 OS: linux AlexD> Submission from: (NULL) (193.190.63.62) AlexD> specifying the "right" option in hist results in a AlexD> warning when plot=F. The option is taken into account AlexD> correctly, but a warning is issued anyway. When AlexD> plot=T there is no warning. >> hist(c(1,1.5),breaks=0:4)$counts AlexD> [1] 1 1 0 0 >> hist(c(1,1.5),breaks=0:4,right=T)$counts AlexD> [1] 1 1 0 0 >> hist(c(1,1.5),breaks=0:4,plot=F)$counts AlexD> [1] 1 1 0 0 >> hist(c(1,1.5),breaks=0:4,right=T,plot=F)$counts AlexD> [1] 1 1 0 0 Warning message: argument 'right' is not AlexD> made use of in: hist.default(c(1, 1.5), breaks = 0:4, AlexD> right = T, plot = F) >> hist(c(1,1.5),breaks=0:4,right=F,plot=F)$counts AlexD> [1] 0 2 0 0 Warning message: argument 'right' is not AlexD> made use of in: hist.default(c(1, 1.5), breaks = 0:4, AlexD> right = F, plot = F) You are right that this happens with R 2.4.0 and you are right that this is a buglet. However you are wrong reporting this as a bug, since it has been fixed quite a while ago; and we would like you to try things in R-patched or R-devel before reporting as bug; If you cannot use such "cutting edge" versions of R, then please just ``report'' such things on R-devel (but not R-bugs) or R-help. All this has been in the R-FAQ for many years. Regards, Martin