wrap_strings: Wrap all elements of a character vector

View source: R/wrap-strings.R

wrap_stringsR Documentation

Wrap all elements of a character vector

Description

Wrap all elements of a character vector

Usage

wrap_strings(input, wrap.in = character())

Arguments

input

An object that contains character strings.

wrap.in

A character vector of length one or two.

If of length one: Pre- and Suffix of the results will be the same.

If of length two: wrap.in[1] will be the prefix. and wrap.in[1] the suffix.

Value

The provided R-object. All elements of the provided character vector are wrapped with a pre- and suffix. If input is not of type vector the return value from base::names(input) will be wrapped accordingly.


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.