Combine vectors of unequal length by row, filling missing columns with NA.
rbind_fill_vector.rd
rbind
s a list of vectors of unequal length to a data.frame. Missing columns are filled with NA.
Examples
a <- list(NULL, 1:2, NA, "a", 11:13)
rbind_fill_vector(a)
#> [,1] [,2] [,3]
#> [1,] NA NA NA
#> [2,] "1" "2" NA
#> [3,] NA NA NA
#> [4,] "a" NA NA
#> [5,] "11" "12" "13"