Re: [R] getting list of data.frame names

2011-10-03 Thread David Reiner
ginal Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erin Hodgess Sent: Saturday, October 01, 2011 10:38 PM To: R help Subject: [R] getting list of data.frame names Dear R People: This is probably a very simple question. I know that if I want to get a

Re: [R] getting list of data.frame names

2011-10-01 Thread Joshua Wiley
Hi Erin, Try this: names(which(sapply(.GlobalEnv, is.data.frame))) Cheers, Josh On Sat, Oct 1, 2011 at 8:37 PM, Erin Hodgess wrote: > Dear R People: > > This is probably a very simple question.  I know that if I want to get > a list of the classes of the objects in the workspace, I can do this

[R] getting list of data.frame names

2011-10-01 Thread Erin Hodgess
Dear R People: This is probably a very simple question. I know that if I want to get a list of the classes of the objects in the workspace, I can do this: > sapply(ls(), function(x)class(get(x))) aa1.dfbd "list" "data.frame""integer""numer