str_length {stringr} | R Documentation |
The length of a string (in characters).
str_length(string)
string |
input vector. This must be an atomic vector, and will be coerced to a character vector |
numeric vector giving number of characters in each element of the character vector. Missing string have missing length.
nchar
which this function wraps
str_length(letters) str_length(c("i", "like", "programming", NA))