| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Processing a list |
| From: | "Data Analytics Corp." <dataanalytics@earthlink.net> |
| Date: | Sat, 22 Sep 2007 12:59:02 -0400 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=guVDt78ocMBGetOBtK/jttIr3Vkt3mgMo6tEWoGHtX0dwpQb0s5jTlOxVbf2D06J; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; |
| User-agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
Hi,I have 100 data frames for a project, each data frame beginning with the word "data" followed by a word for the data itself. I'd like to write a function to loop through each data frame and apply the describe function from the HMISC library. I created a list using
x <- as.list(objects(pattern = "data*"))
which returns a list with 100 elements, each of which is the data frame
name as a character. Then I did
lapply(x, describe)
and got garbage. I think the issue is that x contains character strings
which a function cannot use as the name of an object. How do I tell S+
to treat each character string in the list x as a data frame name which
could then be read by describe?
I'm using s+8.0 if that matters. Thanks, Walt Paczkowski |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | S-PLUS User Conference: Half Off Discount, Kim Kelly |
|---|---|
| Next by Date: | fixed effects estimates, Ana Maria Adalid Martinez |
| Previous by Thread: | S-PLUS User Conference: Half Off Discount, Kim Kelly |
| Next by Thread: | Re: Processing a list, David L Lorenz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |