pystr_splitlines: Split a string at linebreaks.

Description Usage Arguments Details Value References See Also Examples

Description

Return a list of the lines in the string, breaking at line boundaries.

Usage

1
pystr_splitlines(str, keepends = FALSE)

Arguments

str

A character vector.

keepends

A logical vector.

Details

Line breaks are not included in the resulting list unless keepends is TRUE. Line breaks include "\n", "\r", and "\r\n".

Value

A list of character vectors.

References

https://docs.python.org/3/library/stdtypes.html#str.splitlines

See Also

pystr_split

Examples

1
2
pystr_splitlines("First\nSecond\rThird\r\n")
pystr_splitlines("First\nSecond\rThird\r\n", TRUE)


Search within the pystr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.