| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/helpers.R |
| 3 |
\name{wrap} |
| 4 |
\alias{wrap} |
| 5 |
\title{Wrap Vector Elements} |
| 6 |
\usage{ |
| 7 |
wrap(x, wrap = "\\"") |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{a vector to wrap} |
| 11 |
|
| 12 |
\item{wrap}{a string to wrap around vector elements} |
| 13 |
} |
| 14 |
\value{ |
| 15 |
a string with wrapped elements |
| 16 |
} |
| 17 |
\description{ |
| 18 |
Wraps vector elements with string provided in \code{wrap} argument. |
| 19 |
} |
| 20 |
\examples{ |
| 21 |
\dontrun{ |
| 22 |
wrap('foobar') |
| 23 |
wrap(c('fee', 'fi', 'foo', 'fam'), '_') |
| 24 |
} |
| 25 |
} |
| 26 |
\references{ |
| 27 |
This function was moved from \code{rapport} package: \url{https://rapporter.github.io/rapport/}. |
| 28 |
} |
| 29 |
\author{ |
| 30 |
Aleksandar Blagotic |
| 31 |
} |