How to find the length of a string (number of characters in a string) without splitting it in R? I know how to find the length of a list but not of a string.
And wha
You could also use the stringr package:
stringr
library(stringr) str_length("foo") [1] 3