File: str_length.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 (27 lines) | stat: -rw-r--r-- 591 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
\name{str_length}
\alias{str_length}
\title{The length of a string (in characters).}
\usage{
  str_length(string)
}
\arguments{
  \item{string}{input vector. This must be an atomic
  vector, and will be coerced to a character vector}
}
\value{
  numeric vector giving number of characters in each
  element of the character vector.  Missing string have
  missing length.
}
\description{
  The length of a string (in characters).
}
\examples{
str_length(letters)
str_length(c("i", "like", "programming", NA))
}
\seealso{
  \code{\link{nchar}} which this function wraps
}
\keyword{character}