Learn R Programming

pander (version 0.6.5)

wrap: 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

References

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

Examples

Run this code
# NOT RUN {
wrap('foobar')
wrap(c('fee', 'fi', 'foo', 'fam'), '_')
# }

Run the code above in your browser using DataLab