Re: [R] Parsing array data

2008-08-12 Thread Altaweel, Mark R.
Great, that works. Thank you. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tue 8/12/2008 2:49 PM To: Altaweel, Mark R. Cc: [EMAIL PROTECTED]; r-help@r-project.org Subject: RE: [R] Parsing array data Hi: you can do result<-lapply(agg, function(

Re: [R] Parsing array data

2008-08-12 Thread markleeds
] Sent: Tue 8/12/2008 1:05 PM To: Altaweel, Mark R. Subject: RE: [R] Parsing array data try a<-res[[1]] instead of a<-res[1]. you need to acess the dataframe and , to do that, you need to access WHAT'S IN THE FIRST COMPONENT OF THE LIST NOT THE FIRST LIST COMPONENT ITSELF. so tha

Re: [R] Parsing array data

2008-08-12 Thread Altaweel, Mark R.
ginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tue 8/12/2008 1:05 PM To: Altaweel, Mark R. Subject: RE: [R] Parsing array data try a<-res[[1]] instead of a<-res[1]. you need to acess the dataframe and , to do that, you need to access WHAT'S IN THE FIRST COM

[R] Parsing array data

2008-08-12 Thread Altaweel, Mark R.
Hi, I read in csv files with the following code: res <- vector(mode="list",length=3) for(i in 1: length(res)) res[[i]]<-read.csv(file=paste("/Users/markaltaweel/Desktop/Output/HydroDataOutput",i,".csv",sep=""),header=T,sep=",") This allows me to load the data into an array of length 3, with the