Skip to contents

rbinds a list of vectors of unequal length to a data.frame. Missing columns are filled with NA.

Usage

rbind_fill_vector(x)

Arguments

x

A list of vectors. Each element of x must have a dimension of NULL.

Value

a single data frame

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"