string.break.line | R Documentation |
Takes a string and breaks it into seperate substrings where there are newline characters.
string.break.line(string)
string |
character vector to be separated into many lines. |
Returns a list that is the same length of as the string
argument.
Each list element is a character vector.
Each character vectors elements are the
split lines of the corresponding element in the string
argument vector.
Charles Dupont
strsplit
a <- c('', 'this is a single line string',
'This is a\nmulti-line string.')
b <- string.break.line(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.