padded_vector {EpiModel}R 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.


[Package EpiModel version 2.4.0 Index]