powered by
The function breaks a string after around the specified number of characters.
breakString(x, nChar = 20)
A string with inserted \n.
\n
A string.
The number of characters after which the new line is inserted. Default to 20.
Marjan Cugmas
someText <- "This is the function that breaks a string." breakString(x = someText, nChar = 20)
Run the code above in your browser using DataLab