Re: [R] save a data frame in environment

2010-04-27 Thread Uwe Ligges
mailto:lig...@statistik.tu-dortmund.de] Sent: Tuesday, April 27, 2010 11:44 AM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] save a data frame in environment Don't print them but return() them from your function position() within a list. Then you will have a list of two data.frames

Re: [R] save a data frame in environment

2010-04-27 Thread arnaud Gaboury
2010 11:44 AM > To: arnaud Gaboury > Cc: r-help@r-project.org > Subject: Re: [R] save a data frame in environment > > Don't print them but return() them from your function position() within > a list. Then you will have a list of two data.frames for later usage > a

Re: [R] save a data frame in environment

2010-04-27 Thread Uwe Ligges
Don't print them but return() them from your function position() within a list. Then you will have a list of two data.frames for later usage assigned to your list. Uwe Ligges On 27.04.2010 11:37, arnaud Gaboury wrote: Dear group, Here is my function : position<-function(x) {

[R] save a data frame in environment

2010-04-27 Thread arnaud Gaboury
Dear group, Here is my function : position<-function(x) { pose<-read.csv2((paste(c("LSCPos",x,".csv"),collapse="")),dec=".",sep=",",as .is=T,h=T,skip=1)[,c(4,8,14,15)] pose$CREATED.DATE<-as.Date(pose$CREATED.DATE,"%d/%m/%y") futures<-pose[-grep("USD",pose[,