Re: [R] bind select data frames

From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>
Date: Wed, 02 Jun 2010 11:23:00 -0400

Hi Arnaud,

Just replace c(...) by sel[-1] in the paste(...) call and you will be ready to go.

Regards,
Jorge

On Wed, Jun 2, 2010 at 11:13 AM, arnaud Gaboury <> wrote:

> Jorge,
>
> Your line works and give the desired result. Now I need to be able to work
> with i instead of 100419..., as I need 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_at_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 environment:
>
> > ls()
> [1] "DailyPL100419" "DailyPL100420" "DailyPL100421" "dd" "i"
> "l" "PLglobal" "Pos100416" "Pos100419" "Pos100420"
> "Pos100421" "position"
> [13] "result" "sel" "Trad100416" "Trad100419"
> "Trad100420" "Trad100421" "trade"
>
> With "sel" the following element :
>
> sel <-
> c("100419", "100420", "100421")
>
>
> "DailyPL100419" , "DailyPL100420","DailyPL100421" are all data frames with
> same columns names. I want to rbind them with this condition :
>
>
> for (i in sel[-1])
>
> I have no idea how to write it.
>
> TY for any help
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 02 Jun 2010 - 15:25:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jun 2010 - 15:40:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive