Description Usage Arguments Details Value References See Also Examples
Return a list of the lines in the string, breaking at line boundaries.
1 | pystr_splitlines(str, keepends = FALSE)
|
str |
A character vector. |
keepends |
A logical vector. |
Line breaks are not included in the resulting list unless keepends
is
TRUE
. Line breaks include "\n"
, "\r"
, and "\r\n"
.
A list of character vectors.
https://docs.python.org/3/library/stdtypes.html#str.splitlines
1 2 | pystr_splitlines("First\nSecond\rThird\r\n")
pystr_splitlines("First\nSecond\rThird\r\n", TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.