calc_val: Standard way to replace & replicate values for class-creation...

Description Usage Arguments Value

View source: R/zzz.R

Description

Standard way to replace & replicate values for class-creation functions

Usage

1
calc_val(vec, length_out, replace_val = 0)

Arguments

vec

The vector to replace and replicate values throughout

length_out

The target length of the vector, used to repeat length 1 vectors and ignored in all other cases.

replace_val

The value to replace missing values with

Value

A vector of length 'length_out' with missing values replaced by 'replace_val'


mikemahoney218/mvdf documentation built on May 7, 2021, 11:46 a.m.