Skip to content
Prev 221880 / 398500 Next

writing function:loop and rbind

One solution is to create a list, then do.call.
Here is my environment:
[1] "DailyPL100416" "DailyPL100419" "DailyPL100420" "l"             "ll"
"PLglobal"      "Pos100415"     "Pos100416"     "Pos100419"     "Pos100420"
"position"      "r"            
[13] "result"        "sel"           "select"        "Trad100415"
"Trad100416"    "Trad100419"    "Trad100420"    "trade"         "tt"
"w"
DailyPL in the name
[[1]]
[1] "DailyPL100416" "DailyPL100419" "DailyPL100420"
[,1]            [,2]            [,3]           
[1,] "DailyPL100416" "DailyPL100419" "DailyPL100420"

That's not what I want! I expect "DF" to be a data.frame binded by row.

I suspect there is an issue with get() or assign(), or something like that.

Any help is appreciated.