Re: [R] Creating a Data Frame from an XML

2013-01-22 Thread arun
t;,header=FALSE,stringsAsFactors=FALSE)  colnames(dat2)<- unlist(unique(dat1[,seq(1,ncol(dat1),by=2)]))    str(dat2) 'data.frame':    10 obs. of  4 variables: # $ BRAND: chr  "GMC" "FORD" "GMC" "FORD" ... # $ NUM  : int  1 1 1 1 1 1 1 1 1 1 # $ Y

Re: [R] Creating a Data Frame from an XML

2013-01-22 Thread Gabor Grothendieck
On Tue, Jan 22, 2013 at 3:11 PM, Adam Gabbert wrote: > Hello, > > I'm attempting to read information from an XML into a data frame in R using > the "XML" package. I am unable to get the data into a data frame as I would > like. I have some sample code below. > > *XML Code:* > > Header... > > Data

Re: [R] Creating a Data Frame from an XML

2013-01-22 Thread Ben Tupper
On Jan 22, 2013, at 3:11 PM, Adam Gabbert wrote: > Hello, > > I'm attempting to read information from an XML into a data frame in R using > the "XML" package. I am unable to get the data into a data frame as I would > like. I have some sample code below. > > *XML Code:* > > Header... > > Dat

[R] Creating a Data Frame from an XML

2013-01-22 Thread Adam Gabbert
Hello, I'm attempting to read information from an XML into a data frame in R using the "XML" package. I am unable to get the data into a data frame as I would like. I have some sample code below. *XML Code:* Header... Data I want in a data frame: *R Code: