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

From: Achim Zeileis <Achim.Zeileis_at_wu-wien.ac.at>
Date: Sat 11 Jun 2005 - 03:21:14 EST

On Fri, 10 Jun 2005 11:59:07 -0500 Robert Citek wrote:

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

Depends what you mean with `built-in'...  

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

More precisely, it lists the objects in the global environment.

> Is there a function that lists all available built-in objects?

R> search()

will show you the search path and in particular all packages that are currently attached. Using

R> ls("package:base")

you could list all objects in the base packages which includes LETTERS.

> For example, "pi" is another built-in, but "e" is not.

But "exp" is. So

R> exp(1)

will give you "e".
Z

> A means to
> list them would be nice.
>
> 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:33:55 2005

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