File: str_trim.Rd

package info (click to toggle)
r-cran-stringr 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 308 kB
  • sloc: makefile: 3
file content (28 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\name{str_trim}
\alias{str_trim}
\title{Trim whitespace from start and end of string.}
\usage{
  str_trim(string, side = "both")
}
\arguments{
  \item{string}{input character vector}

  \item{side}{side on which whitespace is removed (left,
  right or both)}
}
\value{
  character vector with leading and trailing whitespace
  removed
}
\description{
  Trim whitespace from start and end of string.
}
\examples{
str_trim("  String with trailing and leading white space\\t")
str_trim("\\n\\nString with trailing and leading white space\\n\\n")
}
\seealso{
  \code{\link{str_pad}} to add whitespace
}
\keyword{character}