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

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 11 Jun 2005 - 03:20:18 EST


> From: Robert Citek
>
> How can one discover or list all available built-in objects?
>
> On Jun 10, 2005, at 7:23 AM, Muhammad Subianto wrote:
> >> L3 <- LETTERS[1:3]
> >> L10 <- LETTERS[1:10]
>
> 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?

ls(pos="package:base") lists all objects that are user-visible in the base package. Do that for any package on the search path. You might only be interested in those that are not functions, though.  

> For example, "pi" is another built-in, but "e" is not. A means to
> list them would be nice.

Another useful thing is find(); e.g., find("LETTERS").

Andy  

> Regards,
> - Robert
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 11 03:30:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:30 EST