R ceiling()

1 개요[ | ]

R floor()
ceiling(-1)
## [1] -1
ceiling(-.5)
## [1] 0
ceiling(0.3)
## [1] 1
ceiling(0.7)
## [1] 1
ceiling(2.71828*1000)/1000
## [1] 2.719
ceiling(-2.71828*1000)/1000
## [1] -2.718
ceiling(3.14159*1000)/1000
## [1] 3.142
ceiling(-3.14159*1000)/1000
## [1] -3.141
seq(-1, 2, by=0.3)
##  [1] -1.0 -0.7 -0.4 -0.1  0.2  0.5  0.8  1.1  1.4  1.7  2.0
ceiling( seq(-1, 2, by=0.3) )
##  [1] -1  0  0  0  1  1  1  2  2  2  2

2 같이 보기[ | ]

3 참고[ | ]

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