Answers for "count length of string r"

0

count length of string r

> nchar("foo")
[1] 3
> set.seed(10)
> strn <- paste(sample(LETTERS, 10), collapse = "")
> strn
[1] "NHKPBEFTLY"
> nchar(strn)
[1] 10
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language