breakString | R Documentation |
The function breaks a string after around the specified number of characters.
breakString(x, nChar = 20)
x |
A string. |
nChar |
The number of characters after which the new line is inserted. Default to 20. |
A string with inserted \n
.
Marjan Cugmas
someText <- "This is the function that breaks a string." breakString(x = someText, nChar = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.