Split Text at End of Line Characters Into Lines
Arguments
- x
vector of character of length 1.
Value
vector of character as long as there are lines in x
Examples
splitIntoLines("a\nb\nc")
#> [1] "a" "b" "c"
splitIntoLines("a\r\nb\r\nc")
#> [1] "a" "b" "c"