参考手册
参考手册
实例 R 语言 查找字符串中的字符数
源代码
运行代码
str <- "Hello World!" nchar(str)
x
str
<-
"Hello World!"
nchar
(
str
)
输出结果
[1] 12