wrap_string.Rd
Wrap a string
wrap_string(x, n_chars, sep = " <br> ")
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 |
character, a string, with the text wrapped (separate) by the sep
delimiter
a <- "a really long string that you want to wrap" wrap_string(a,n_chars = 20, sep = )#> [1] "a really long <br> string that you <br> want to wrap"