LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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).


Back to: Top of message | Previous page | Main SAS-L page