R for

Jmnote (토론 | 기여)님의 2019년 5월 6일 (월) 00:43 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

R for
for( x in 1:4 ) {
    print(x)
}
## [1] 1
## [1] 2
## [1] 3
## [1] 4
v <- c("John Smith", "Jane Doe", "Mike Barnes", "Kevin Patterson")
for( s in v ) {
    print( s )
}
## [1] "John Smith"
## [1] "Jane Doe"
## [1] "Mike Barnes"
## [1] "Kevin Patterson"

2 같이 보기[ | ]

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