Re: [R] ls() and classes

From: Benilton Carvalho <bcarvalh_at_jhsph.edu>
Date: Tue, 18 Mar 2008 23:49:49 -0400

On Mar 18, 2008, at 11:44 PM, Rolf Turner wrote:
>
> On 19/03/2008, at 4:39 PM, Erin Hodgess wrote:
>
>> do.call(class,list=ls())
>
> sapply(ls(),function(x){class(get(x))})

or, in case you want to save some typing:

eapply(globalenv(), class)

b



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 19 Mar 2008 - 03:52:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Mar 2008 - 04:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive