Learn R Programming

EpiModel (version 2.5.0)

padded_vector: 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)

Value

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

Arguments

orig

A vector to grow.

size

The final size of the vector.