Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
>> >> Christian T. Stackhouse | Graduate Student >> GBS Neuroscience Theme >> Department of Neurosurgery >> Department of Radiation Oncology >> UAB | The University of Alabama at Birmingham >> Hazelrig-Salter Radiation Oncology Center | 1700 6th Ave S | Birmingham, AL >> 3

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
nowledge that will change your world From: Jim Lemon Sent: Tuesday, March 22, 2016 6:02 PM To: Christian T Stackhouse (Campus) Cc: r-help@r-project.org Subject: Re: [R] Help batch saving elements of a list into unique files I think it's the "unlis

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
, AL 35233 M: 919.724.6890 | ctsta...@uab.edu | cstackho...@uabmc.edu | ctsta...@gmail.com uab.edu Knowledge that will change your world From: Jim Lemon Sent: Tuesday, March 22, 2016 5:46 PM To: Christian T Stackhouse (Campus) Cc: r-help@r-project.org Subject:

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
day, March 22, 2016 5:39 PM To: Christian T Stackhouse (Campus) Cc: r-help@r-project.org Subject: Re: [R] Help batch saving elements of a list into unique files Okay, I just snipped off the first token in the header labels assuming that there would be no more periods. Try this: drop_token1&l

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
edu | ctsta...@gmail.com uab.edu Knowledge that will change your world From: Jim Lemon Sent: Tuesday, March 22, 2016 8:46 PM To: Christian T Stackhouse (Campus) Cc: r-help@r-project.org Subject: Re: [R] Help batch saving elements of a list into unique files Okay. Got some lu

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
sta...@gmail.com uab.edu Knowledge that will change your world From: Jim Lemon Sent: Tuesday, March 22, 2016 4:48 PM To: Christian T Stackhouse (Campus) Cc: r-help@r-project.org Subject: Re: [R] Help batch saving elements of a list into unique files Hi Ch

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
Stackhouse (Campus) Cc: r-help@r-project.org Subject: Re: [R] Help batch saving elements of a list into unique files Transcription. I forgot the "collapse" argument when I wrote the email: drop_token1<-function(x) { return(paste(x[2:length(x)],sep="",collapse="."

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
e | Graduate Student >> GBS Neuroscience Theme >> Department of Neurosurgery >> Department of Radiation Oncology >> UAB | The University of Alabama at Birmingham >> Hazelrig-Salter Radiation Oncology Center | 1700 6th Ave S | Birmingham, AL >> 35233 >> M: 919.724.6890 | ctsta...@uab.e

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
du | > ctsta...@gmail.com > > uab.edu > Knowledge that will change your world > > > ________________ > From: Jim Lemon > Sent: Tuesday, March 22, 2016 6:02 PM > To: Christian T Stackhouse (Campus) > Cc: r-help@r-project.org > Subject: Re: [R

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
Alabama at Birmingham > Hazelrig-Salter Radiation Oncology Center | 1700 6th Ave S | Birmingham, AL > 35233 > M: 919.724.6890 | ctsta...@uab.edu | cstackho...@uabmc.edu | > ctsta...@gmail.com > > uab.edu > Knowledge that will change your world > > > ___________

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
ent: Tuesday, March 22, 2016 5:39 PM > To: Christian T Stackhouse (Campus) > Cc: r-help@r-project.org > Subject: Re: [R] Help batch saving elements of a list into unique files > > Okay, I just snipped off the first token in the header labels assuming > that there would be no more peri

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
sta...@gmail.com > > uab.edu > Knowledge that will change your world > > > ____________ > From: Jim Lemon > Sent: Tuesday, March 22, 2016 4:48 PM > To: Christian T Stackhouse (Campus) > Cc: r-help@r-project.org > Subject: Re:

Re: [R] Help batch saving elements of a list into unique files

2016-03-22 Thread Jim Lemon
Hi Christian, This untested script might get you going (assuming you want a CSV format): for(affdf in 1:length(out)) { names(out[[affdf]])<-lapply(strsplit(names(out[[affdf]]),"[.]"),"[",2) write.csv(out[[affdf]],file=paste("affymetrix",affdf,".txt",sep="")) } Jim On Wed, Mar 23, 2016 at 6:32

[R] Help batch saving elements of a list into unique files

2016-03-22 Thread Christian T Stackhouse (Campus)
Hello! The overall goal I have is taking a large data frame and splitting it into several smaller data frames (preserving column headers) which I can save as txt files to feed into my APACHE ANY23 server for conversion into RDF. This is what I call to split up the original file: out <- spli