Re: [R] Creating a data frame

2018-10-09 Thread Nathan Parsons
Please post both the code you are using and the error, Abigail. Nate On Oct 9, 2018, 11:59 AM -0700, Friedman, Abigail , wrote: > I keep getting error messages when running my data frame code and I cannot > figure out what I am doing wrong. > > > [[alternative HTML version deleted]] > >

Re: [R] Creating a data frame

2018-10-09 Thread Rui Barradas
Hello, Well, you must post the said code (and data), how can we help you without seeing it? In order to post data, post the output of dput(df) in your mail. Or, if it is too big with the output of dput(head(df, 20)). (df is the name of your dataset.) Also, don't post in html, please, see t

[R] Creating a data frame

2018-10-09 Thread Friedman, Abigail
I keep getting error messages when running my data frame code and I cannot figure out what I am doing wrong. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] Creating a data frame from scratch

2016-05-24 Thread Nordlund, Dan (DSHS/RDA)
lp [mailto:r-help-boun...@r-project.org] On Behalf Of > g.maub...@gmx.de > Sent: Tuesday, May 24, 2016 11:55 AM > To: r-help@r-project.org > Subject: [R] Creating a data frame from scratch > > Hi All, > > I need to create a data frame from scratch and fill variables created o

[R] Creating a data frame from scratch

2016-05-24 Thread G . Maubach
Hi All, I need to create a data frame from scratch and fill variables created on the fly with values. What I have so far: -- schnipp -- # Example dataset gene <- c("ENSG0208234","ENSG0199674","ENSG0221622","ENSG0207604", "ENSG0207431","ENSG0221312","ENSG00134940305",

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: