Undocumented functions (was: [R] Dates on Graphics)

Emmanuel Paradis paradis at isem.univ-montp2.fr
Thu Jun 8 09:36:09 CEST 2000

At 19:48 07/06/00 +0200, Friedrich Leisch wrote:
>>>>>> On Wed, 7 Jun 2000 09:41:23 -0700 (PDT),
>>>>>> Thomas Lumley (TL) wrote:
>TL> Some of this can be done with apropos(), but I don't think you can
>TL> search from inside R. It would be nice.
>help.search() might do what you want ...

Yes, but help.search() looks in the documented functions, whereas Yves's
concern was about the functions which are not documented. apropos() is fine
apparently, providing the corresponding library is loaded:

> apropos("date")
[1] "date"            "update"          "update.default"  "update.formula" 
[5] "update.packages"
> library(date)
> apropos("date")
 [1] "Math.date"          "Ops.date"           "Summary.date"      
 [4] "[.date"             "[[.date"            "as.character.date" 
 [7] "as.data.frame.date" "as.date"            "as.vector.date"    
[10] "date.ddmmmyy"       "date.mdy"           "date.mmddyy"       
[13] "date.mmddyyyy"      "is.date"            "is.na.date"        
[16] "mdy.date"           "plot.date"          "print.date"        
[19] "summary.date"       "date"               "update"            
[22] "update.default"     "update.formula"     "update.packages"   
> ?plot.date
Error in help(plot.date) : No documentation for `plot.date'

Hence, plot.date() is effectively here but not documented. AFAIK, the only
solution to know how to use the function is to open the file
RHOME/library/date/R, and search for:

plot.date <- function(x, y, ..., xaxt, xlab, ylab) {

Emmanuel Paradis
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