https://github.com/cran/pracma
Tip revision: 71455748623ef69836470c75c5f9384f6e872d45 authored by HwB on 28 June 2011, 00:00:00 UTC
version 0.6-3
version 0.6-3
Tip revision: 7145574
strtrim.Rd
\name{strtrim}
\alias{strtrim}
\alias{deblank}
\title{
Remove leading and trailing white space.
}
\description{
Removes leading and trailing white space from a string.
}
\usage{
strtrim(s)
deblank(s)
}
\arguments{
\item{s}{character string or character vector}
}
\details{
\code{strtrim} removes leading and trailing white space from a string or
from all strings in a character vector.
\code{deblank} removes trailing white space only from a string or
from all strings in a character vector.
}
\value{
A character string or character vector with (leading and) trailing
white space.
}
\seealso{
\code{\link{strjust}}
}
\examples{
s <- c(" abc", "abc ", " abc ", " a b c ", "abc", "a b c")
strtrim(s)
deblank(s)
}
\keyword{ string }