Description Usage Arguments Value
Standard way to replace & replicate values for class-creation functions
1 | calc_val(vec, length_out, replace_val = 0)
|
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 |
A vector of length 'length_out' with missing values replaced by 'replace_val'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.