1% Generated by roxygen2 (4.1.1): do not edit by hand 2% Please edit documentation in R/pystr_strip.R 3\name{pystr_strip} 4\alias{pystr_strip} 5\title{Strip a string.} 6\usage{ 7pystr_strip(str, chars = " ") 8} 9\arguments{ 10\item{str}{A character vector.} 11 12\item{chars}{A character string.} 13} 14\value{ 15A character vector. 16} 17\description{ 18Return a copy of the string with the leading and trailing characters removed. 19} 20\details{ 21The \code{chars} argument is a string specifying the set of characters to be 22removed. If omitted, the \code{chars} argument defaults to removing whitespace. 23The \code{chars} argument is not a prefix or suffix; rather, all combinations 24of its values are stripped. 25} 26\examples{ 27pystr_strip(" very spacious ") 28pystr_strip("www.example.com", "cmowz.") 29} 30\references{ 31\url{https://docs.python.org/3/library/stdtypes.html#str.strip} 32} 33\seealso{ 34\code{\link{pystr_lstrip}}, \code{\link{pystr_rstrip}} 35} 36 37