pystr_rstrip: Right strip a string.

Description Usage Arguments Details Value References See Also Examples

Description

Return a copy of the string with trailing characters removed.

Usage

1
pystr_rstrip(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 suffix; rather, all combinations of its values are stripped.

Value

A character vector.

References

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

See Also

pystr_lstrip

Examples

1
2
pystr_rstrip("    spacious     ")
pystr_rstrip("www.example.com", ".omc")

pystr documentation built on April 15, 2017, 12:30 a.m.

Related to pystr_rstrip in pystr...