wrap_string: Wrap a string

Description Usage Arguments Value Examples

View source: R/wrap_string.R

Description

Wrap a string

Usage

1
wrap_string(x, n_chars, sep = " <br> ")

Arguments

x

character, a string with words in it

n_chars

numeric, number of characters before split

sep

charcter, a character string with the separator, default is " <br> " for html

Value

character, a string, with the text wrapped (separate) by the sep delimiter

Examples

1
2
a <- "a really long string that you want to wrap"
wrap_string(a,n_chars = 20, sep = )

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.