Message-ID: <971536df0803182050p1378ebe2hc8620d5ed703132d@mail.gmail.com>
Date: 2008-03-19T03:50:28Z
From: Gabor Grothendieck
Subject: ls() and classes
In-Reply-To: <7acc7a990803182039j11ec867bp82f66656de66496b@mail.gmail.com>
Try:
eapply(.GlobalEnv, class)
or perhaps
unlist(eapply(.GlobalEnv, class))
or
str(eapply(.GlobalEnv, class))
On Tue, Mar 18, 2008 at 11:39 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> I want to get the class of all of the objects in my directory.
>
> I was trying:
>
> do.call(class,list=ls())
>
> but got an "unused argument error".
>
> I'm sure it's simple, but I'm just not seeing it.
>
> Any help would be much appreciated.
>
> Sincerely,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> 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.
>