pystr_lstrip: Left strip a string.

Description Usage Arguments Details Value References See Also Examples

Description

Return a copy of the string with leading characters removed.

Usage

1
pystr_lstrip(str, chars = " ")

Arguments

str

A character vector.

chars

A character string.

Details

The chars argument is a string specifying the set of characters to be removed. If omitted, the chars argument defaults to removing whitespace. The chars argument is not a prefix; rather, all combinations of its values are stripped.

Value

A character vector.

References

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

See Also

pystr_rstrip

Examples

1
2
pystr_lstrip("     spacious    ")
pystr_lstrip("www.example.com", "w.")


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.