fill_na: Combine list of vectors filling with NA's

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Combines a list of vectors, filling with NA's to reach the longest vector. Returns a data.frame

Usage

1

Arguments

x

a list of vectors.

Value

a data.frame with vectors as columns.

Examples

1
2
3
4
5
# Combine vectors a, b, and c:
a <- rnorm(10)
b <- rnorm(5)
c <- rnorm(9)
fill_na(list(a,b,c))

brickmanlab/commonR documentation built on Dec. 19, 2021, 11:44 a.m.