[R] discovery (was: data.frame to character)

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 10 19:19:49 CEST 2005


On Fri, 10 Jun 2005, Robert Citek wrote:

> How can one discover or list all available built-in objects?

sort(unlist(lapply(search()[-1], ls)))

would be a good start, but with over 2000 what are you going to do with 
the information?  (Actually, there are more ...).

> LETTERS is apparently a built-in character vector.  ls() and objects
> () only lists the ones I've created.  Is there a function that lists
> all available built-in objects?
>
> For example, "pi" is another built-in, but "e" is not.  A means to
> list them would be nice.

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




More information about the R-help mailing list