[Rd] truehist (MASS) nbins problem (PR#1396)

rechung@aol.com rechung@aol.com
Tue, 19 Mar 2002 21:50:05 +0100 (MET)

Full_Name: Robert Chung
Version: 1.4.1
OS: Windows 98
Submission from: (NULL) (

If I try to use the nbins="FD" argument to truehist, I get an 
error that says nclass.fd can't be found. If I edit the 
truehist function to look for nclass.FD the function works 
as I expect.

An example:
> x <- rnorm(100)
> library(mass)
> truehist(x,nbins="scott")  # This works
> truehist(x,nbins="FD")     # This doesn't
Error in switch(casefold(nbins), scott = nclass.scott(data), "freedman-diaconis"
= ,  : 
        couldn't find function "nclass.fd"
> ?nclass.fd  
Error in help("nclass.fd") : No documentation for `nclass.fd' in specified
packages and libraries:
  you could try `help.search("nclass.fd")'
> ?nclass.FD  # this finds the proper help page

r-devel 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-devel-request@stat.math.ethz.ch