Re: [R] writing function:loop and rbind

2010-05-24 Thread arnaud Gaboury
> Cc: r-help@r-project.org > Subject: Re: [R] writing function:loop and rbind > > On Mon, May 24, 2010 at 7:00 AM, arnaud Gaboury > wrote: > > One solution is to create a list, then do.call. > > Here is my environment: > > > >> ls() > > [

Re: [R] writing function:loop and rbind

2010-05-24 Thread arnaud Gaboury
oury > Cc: r-help@r-project.org > Subject: Re: [R] writing function:loop and rbind > > On Mon, May 24, 2010 at 7:00 AM, arnaud Gaboury > wrote: > > One solution is to create a list, then do.call. > > Here is my environment: > > > >> ls() > > [

Re: [R] writing function:loop and rbind

2010-05-24 Thread Joshua Wiley
On Mon, May 24, 2010 at 7:00 AM, arnaud Gaboury wrote: > One solution is to create a list, then do.call. > Here is my environment: > >> ls() >  [1] "DailyPL100416" "DailyPL100419" "DailyPL100420" "l"             "ll" > "PLglobal"      "Pos100415"     "Pos100416"     "Pos100419"     "Pos100420" > "

Re: [R] writing function:loop and rbind

2010-05-24 Thread arnaud Gaboury
One solution is to create a list, then do.call. Here is my environment: > ls() [1] "DailyPL100416" "DailyPL100419" "DailyPL100420" "l" "ll" "PLglobal" "Pos100415" "Pos100416" "Pos100419" "Pos100420" "position" "r" [13] "result""sel"

[R] writing function:loop and rbind

2010-05-24 Thread arnaud Gaboury
Dear group, I have a function, let's call it myfun, wich give me a list of result: R1,R2,R3... There is a loop in this function to get my results. Here is the structure of my function: Myfun<-function() { For (i in X ){ ---instructions- Ri { { All Results (R1,R2...) are Data.