Alternative to cbind to append vectors with diferent row number

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Alternative to cbind to append vectors with diferent row number

mcva
´m trying to append the result of a loop which produces a vector with different length (the model output). Unfortunatley cbind only works if the vectors have the same length. How can I solve this? Thank you.

d <- lapply(1:10, function(i) {model <- code
data.frame(model)})
df_total <- do.call(cbind, d)