Learn R Programming

eatTools (version 0.7.8)

rbind_fill_vector: Combine vectors of unequal length by row, filling missing columns with NA.

Description

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

Usage

rbind_fill_vector(x)

Value

a single data frame

Arguments

x

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

Examples

Run this code
a <- list(NULL, 1:2, NA, "a", 11:13)
rbind_fill_vector(a)

Run the code above in your browser using DataLab