Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

Aleksandar Blagotic

References

This function was moved from rapport package: http://rapport-package.info.

Examples

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

## End(Not run)

pander

An R 'Pandoc' Writer

v0.6.3
AGPL-3 | file LICENSE
Authors
Gergely Daróczi [aut, cre] (<https://orcid.org/0000-0003-3149-8537>), Roman Tsegelskyi [aut]
Initial release
2018-11-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.