R for

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 }}