filesstrings (version 0.3.2)

ExtendCharVec: Pad a character vector with empty strings.

Description

Extend a character vector by appending empty strings at the end.

Usage

ExtendCharVec(char.vec, extend.by = NA, length.out = NA)

Arguments

char.vec
A character vector. The thing you wish to expand.
extend.by
A non-negative integer. By how much do you wish to extend the vector?
length.out
A positive integer. How long do you want the output vector to be?

Value

A character vector.

Examples

Run this code
ExtendCharVec(1:5, extend.by = 2)
ExtendCharVec(c("a", "b"), length.out = 10)

Run the code above in your browser using DataLab