enlargeVector | R Documentation |
Enlarge a vector to the given length, filling with given element
enlargeVector(x, length.out, fill.with = "")
x |
vector |
length.out |
desired length of output vector |
fill.with |
element to fill the vector up with (default: "") |
x
, filled up with fill.with
to a final length of
length.out
kwb.utils::enlargeVector(1:5, 10, fill.with = 0)
kwb.utils::enlargeVector(1:5, 10, fill.with = NA)
kwb.utils::enlargeVector(c("a", "b", "c"), 10)
kwb.utils::enlargeVector(c("a", "b", "c"), 10, fill.with = "?")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.