powered by
Extend a character vector by appending empty strings at the end.
ExtendCharVec(char.vec, extend.by = NA, length.out = NA)
A character vector. The thing you wish to expand.
A non-negative integer. By how much do you wish to extend the vector?
A positive integer. How long do you want the output vector to be?
A character vector.
ExtendCharVec(1:5, extend.by = 2) ExtendCharVec(c("a", "b"), length.out = 10)
Run the code above in your browser using DataLab