pystr_strip: Strip a string.

Description Usage Arguments Details Value References See Also Examples

View source: R/pystr_strip.R

Description

Return a copy of the string with the leading and trailing characters removed.

Usage

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

Value

A character vector.

References

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

See Also

pystr_lstrip, pystr_rstrip

Examples

1
2
pystr_strip("   very spacious   ")
pystr_strip("www.example.com", "cmowz.")

nicolewhite/pystr documentation built on May 23, 2019, 5:09 p.m.