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
nchar(YOURSTRING)
you may need to convert to a character vector first;
nchar(as.character(YOURSTRING))