ceiling1 | R Documentation |
Raises a number to the nearest 0.1, 0.5, 1, 5, 10, etc.
ceiling1(x, level)
x |
A number |
level |
The "level" to round the number to |
A rounded number
# Raise 0.34 to nearest 0.5
ceiling1(0.34, level=0.5)
#' Raise 35.6 to nearest 60
ceiling1(35.6, level=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.