Date: Wed, 24 Oct 2007 19:04:47 +0200
Reply-To: "A.J. Rossini" <blindglobe@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "A.J. Rossini" <blindglobe@GMAIL.COM>
Subject: Re: SAS to R via XML - advice wanted
In-Reply-To: <941871A13165C2418EC144ACB212BDB04E13D3@dshsmxoly1504g.dshs.wa.lcl>
Content-Type: text/plain; charset=UTF-8
On 10/24/07, Nordlund, Dan (DSHS/RDA) <NordlDJ@dshs.wa.gov> wrote:
> > -----Original Message-----
> > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On
> > Behalf Of Keintz, H. Mark
> > Sent: Tuesday, October 23, 2007 9:30 PM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: SAS to R via XML - advice wanted
> >
> > Has anybody created SAS datasets using the XML libname
> > engine, with the
> > resulting file readable by R? I am told that R can read XML files.
Unlike everyone else, I'd actually recommend the XML approach if the
person knows XML.
Working off the top of my head (it's been a year or so since I did R
XML), you can get some example code via:
library(XML)
?xmlRoot
?xmlApply
(should bring up help windows). Of course, you'll need the XML
package, which is easy to get for Microsoft, a bit tougher to build on
Unix/Linux.
And the SAS side looks easy, based on the SUGI presentations.
best,
-tony
blindglobe@gmail.com
Muttenz, Switzerland.
"Commit early,commit often, and commit in a repository from which we
can easily roll-back your mistakes" (AJR, 4Jan05).
|