Hi! I'm very new to R and find the array binding kinda hard to understand.
I have a list of lists. Each one of these lists contains 3 data tables. I'm building that list using
lapply and want to bind my results together so that I have a list of only 3 items to return. Each one of the 3 lists have a name, so I've been trying to use
names(...), but it doesn't work.
Here is what the list looks like:
He is my code:
res = pblapply( PlacToTest, function (x)EsPaCeSimulation(Mydata, ID_Stand = x, TpsSimul = TpsSimul, UseMixedStdTYPE = UseMixedStdTYPE )) tapply(res[], names(res[]), bind_rows)
listOfResults = list( "EsPaCe" = ResFinal, "Natura_inventory" = NaturaInit[], "Natura_study" = NaturaInit[] )
Can someone help me? Thanks!