This should be very simple, but my efforts with unlist or matrix failed.
How can you export the following list into an excel sheet that preserves the same structure?
list(structure(list(rob = c(0.500395231401348, 0.839314035292317,
0.710466394967634, 0.61574235723249)), .Names = "rob", row.names = c(NA,
4L), class = "data.frame"), structure(list(rob = c(0.66163340478379,
0.591092739290417, 0.554484883310407, 0.78199375944331, 0.489388775242085
)), .Names = "rob", row.names = c(NA, 5L), class = "data.frame"),
structure(list(rob = c(0.697897964659196, 0.480394119894312,
0.514294379103359, 0.626971885076273, 0.77938643423231, 0.618135503224601
)), .Names = "rob", row.names = c(NA, 6L), class = "data.frame"))
Thanks!
You can do it by:
NAto make all vectors the same lengthdo.call(rbind, ...)to create a data frameLike this:
Then it’s a simple mattter of using
write.table()or your favourite export to excel method.