splitLongWords | R Documentation |
Takes a vector of words (character strings) and splits each word longer than the specified length (in characters) using separators passed as a regular expression.
splitLongWords( words, width, separators = "[,;:/\\?\\!\\-\\%]", NAstring = "NA" )
words |
a character vector. |
width |
integer; maximal width (in characters) of a word. |
separators |
character string with a regular expression. |
NAstring |
character string, NA value replacement The word is cut *after* each occurrence of the pattern. |
an updated character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.