wrap: Wrap Vector Elements

View source: R/helpers.R

wrapR Documentation

Wrap Vector Elements

Description

Wraps vector elements with string provided in wrap argument.

Usage

wrap(x, wrap = "\"")

Arguments

x

a vector to wrap

wrap

a string to wrap around vector elements

Value

a string with wrapped elements

Author(s)

Aleksandar Blagotic

References

This function was moved from rapport package: https://rapporter.github.io/rapport/.

Examples

## Not run: 
wrap('foobar')
wrap(c('fee', 'fi', 'foo', 'fam'), '_')

## End(Not run)

Rapporter/pander documentation built on March 23, 2022, 2:22 a.m.