padded_vector: Grow a Vector to a Given Size, Padding it With Empty Elements

View source: R/net.accessor.R

padded_vectorR Documentation

Grow a Vector to a Given Size, Padding it With Empty Elements

Description

Grow a vector to a given size, padding it with NULL if orig is a list and with NA otherwise

Usage

padded_vector(orig, size)

Arguments

orig

A vector to grow.

size

The final size of the vector.

Value

A vector of size size padded with NULLs or NAs at the end.


EpiModel documentation built on July 9, 2023, 5:21 p.m.