From rechung@aol.com  Tue Mar 19 20:50:05 2002
From: rechung@aol.com (rechung@aol.com)
Date: Tue, 19 Mar 2002 21:50:05 +0100 (MET)
Subject: [Rd] truehist (MASS) nbins problem (PR#1396)
Message-ID: <200203192050.VAA07111@pubhealth.ku.dk>

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


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] truehist (MASS) nbins problem (PR#1396)
rechung@aol.com