[R] bind select data frames

2010-06-02 Thread arnaud Gaboury
Dear group, Here is my environment: ls() [1] DailyPL100419 DailyPL100420 DailyPL100421 ddi l PLglobal Pos100416 Pos100419 Pos100420 Pos100421 position [13] resultsel Trad100416Trad100419 Trad100420Trad100421trade With

Re: [R] bind select data frames

2010-06-02 Thread Joshua Wiley
Hello, Does this do what you are looking for? output - NULL for(i in paste(DailyPL, sel, sep=)[-1]){ output - rbind(output, get(i)) } If you just want to rbind all the data frames, there are ways of doing it without a loop too, but since you specifically asked with

Re: [R] bind select data frames

2010-06-02 Thread arnaud Gaboury
Wiley [mailto:jwiley.ps...@gmail.com] Sent: Wednesday, June 02, 2010 4:48 PM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hello, Does this do what you are looking for? output - NULL for(i in paste(DailyPL, sel, sep=)[-1

Re: [R] bind select data frames

2010-06-02 Thread arnaud Gaboury
-Original Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Wednesday, June 02, 2010 4:48 PM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hello, Does this do what you are looking for? output - NULL for(i in paste

Re: [R] bind select data frames

2010-06-02 Thread Joshua Wiley
To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hello, Does this do what you are looking for? output - NULL for(i in paste(DailyPL, sel, sep=)[-1]){   output - rbind(output, get(i))   } If you just want to rbind all

Re: [R] bind select data frames

2010-06-02 Thread Jorge Ivan Velez
Hi Arnaud, Try the following (untested): txt - paste('DailyPL',c(100419, 100420, 100421), sep = ) do.call(rbind, lapply(txt, get)) HTH, Jorge On Wed, Jun 2, 2010 at 10:24 AM, arnaud Gaboury wrote: Dear group, Here is my environment: ls() [1] DailyPL100419 DailyPL100420 DailyPL100421

Re: [R] bind select data frames

2010-06-02 Thread Joshua Wiley
Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Wednesday, June 02, 2010 4:48 PM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hello, Does this do what you are looking for? output - NULL for(i in paste(DailyPL, sel

Re: [R] bind select data frames

2010-06-02 Thread Jorge Ivan Velez
to be able to change these numbers. TY for your help From: Jorge Ivan Velez [mailto:] Sent: Wednesday, June 02, 2010 5:09 PM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hi Arnaud, Try the following (untested): txt - paste('DailyPL',c(100419

Re: [R] bind select data frames

2010-06-02 Thread arnaud Gaboury
] Sent: Wednesday, June 02, 2010 4:48 PM To: arnaud Gaboury Cc: r-help@r-project.org Subject: Re: [R] bind select data frames Hello, Does this do what you are looking for? output - NULL for(i in paste(DailyPL, sel, sep=)[-1]){ output - rbind(output, get(i

Re: [R] bind select data frames

2010-06-02 Thread arnaud Gaboury
-project.org Subject: Re: [R] bind select data frames On Wed, Jun 2, 2010 at 8:06 AM, arnaud Gaboury arnaud.gabo...@gmail.com wrote: I am working with something like this : for (i in sel[-1]) { dd-data.frame(do.call(rbind, mget(paste(DailyPL,i,sep=),envir=.GlobalEnv)),row.names=NULL

Re: [R] bind select data frames

2010-06-02 Thread arnaud Gaboury
: r-help@r-project.org Subject: Re: [R] bind select data frames Hi Arnaud, Try the following (untested): txt - paste('DailyPL',c(100419, 100420, 100421), sep = ) do.call(rbind, lapply(txt, get)) HTH, Jorge On Wed, Jun 2, 2010 at 10:24 AM, arnaud Gaboury wrote: Dear group, Here is my