Rolf Turner <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> 
> On 19/03/2008, at 4:39 PM, Erin Hodgess wrote:
> 
>> Dear R People:
>>
>> I want to get the class of all of the objects in my directory.
>>

> 
> Too easy!!!
> 
> sapply(ls(),function(x){class(get(x))})
> 


Thank you, Rolf. That supplied the needed index to the question I 
struggled with yesterday: How to get a list of only my dataframes:

ls()[sapply(ls(),function(x){class(get(x))}) == "data.frame"]

-- 
David Winsemius

______________________________________________
R-help@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.

Reply via email to