"R nchar()"의 두 판 사이의 차이

6번째 줄: 6번째 줄:
nchar("hello")
nchar("hello")
</source>
</source>
<source lang='r'>
<source lang='r' run>
nchar("")
nchar("")
</source>
</source>
<source lang='r'>
<source lang='r' run>
x <- "hello world"
x <- "hello world"
options(echo=T)
options(echo=T)
15번째 줄: 15번째 줄:
cat( nchar(x) )
cat( nchar(x) )
</source>
</source>
<source lang='r'>
<source lang='r' run>
x <- c("asfef", "qwerty", "yuiop[", "b", "stuff.blah.yech")
x <- c("asfef", "qwerty", "yuiop[", "b", "stuff.blah.yech")
nchar(x)
nchar(x)

2020년 4월 26일 (일) 12:51 판

1 개요

R nchar()
  • 문자의 수를 세는 함수
nchar("hello")
nchar("")
x <- "hello world"
options(echo=T)
nchar(x)
cat( nchar(x) )
x <- c("asfef", "qwerty", "yuiop[", "b", "stuff.blah.yech")
nchar(x)

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}