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

2013-01-24 Thread Adam Gabbert
combine them as necessary, and output a final XML format with updated data. Apparently, it wasn't quite as trivial of a problem as I was hoping. On Wed, Jan 23, 2013 at 8:09 PM, Ben Tupper wrote: > Hi Adam, > > On Jan 23, 2013, at 11:36 AM, Adam Gabbert wrote: > > Hello

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

2013-01-23 Thread Adam Gabbert
d = t( sapply(xmlRoot(doc) [ "row" ], xmlAttrs) ) > > gives you a matrix with the correct rows and column orientation > and now you can turn that into a data frame, converting the > columns into numbers, etc. as you want with regular R commands > (i.e. independently of the XML). &

[R] Create 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

[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:

Re: [R] Select Original and Duplicates

2012-09-28 Thread Adam Gabbert
this helps, > > Rui Barradas > > Em 28-09-2012 21:11, Adam Gabbert escreveu: > >> I would like to select a all the duplicate rows of a data frame including >> the original. Any help would be much appreciated. This is where I'm at >> so >> far. Thank

[R] Select Original and Duplicates

2012-09-28 Thread Adam Gabbert
I would like to select a all the duplicate rows of a data frame including the original. Any help would be much appreciated. This is where I'm at so far. Thanks. #Sample data frame: df <- read.table(header=T, con <- textConnection(' label value A 4 B 3 C 6 B 3

Re: [R] Error Bars ggplot2

2012-07-26 Thread Adam Gabbert
7;t understand the point of the second geom_errorbar() call, so I'm just avoiding it. In order to dodge (appose groups in factor B side by side within each level of factor A), you need a third variable whose values are nested within levels of spd.f. HTH, Dennis On Thu, Jul 26, 2012 at 6

[R] Error Bars ggplot2

2012-07-26 Thread Adam Gabbert
Hello, I'm attempting to plot error bars side by side rather than stacked on top of each other with ggplot2. Here is the sample code I am using: #Code #Data spd<-c("s","f","f","s","f","s","s","s","f","f","s","f") r<-c(4.9,3.2,2.1,.2,3.8,6.4,7.5,1.7,3.4,4.1,2.2,5) #Turn spd into a factor spd.f<