wrap: Surround Text With Text

View source: R/paste.R

wrapR Documentation

Surround Text With Text

Description

Wrapper for a common

Usage

wrap(text, with = "", ...)

Arguments

text

Character vector

with

Character, string to wrap around each component of text

...

Additional arguments passed to paste0()

Value

Character vector

Examples

wrap(c("text1", "text2"), "'")
wrap(c("text1", "text2"), "'", collapse = ", ")
wrap(c("text1", "text2"), collapse = ", ")


EricLamphere/ezextras documentation built on Sept. 14, 2022, 3:09 p.m.