Description Usage Arguments Details References Examples
String / text processing functions
1 2 3 4 5 6 7 8 9 |
x |
a character vector |
n |
an integer of length 1. |
... |
addtional parameters used by specific functions. See Details. |
trimreturns a version of x without trailing OR leading spaces.
chompreturns a version of x without trailing newline delimiters.
text_wrapreturns a version of x in which each element substitutes newline
delimiters for the immediate next space (e.g. ' ') after every nth character.
translitreturns a version of x recoded to ASCII, using iconv and
//TRANSLIT. Parameters in ... are passed directly to iconv.
rand_stringreturns a randomly generated alphanumeric string of length n.
I attribute the regular expression that powers text_wrap()
to StackOverflow user xiechao:
http://stackoverflow.com/a/2352006/3277821
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.