View source: R/helper_functions.R
round_floor | R Documentation |
Define the rounding operator associated with the floor function. The function
also returns zero whenever the input is negative and caps the value at y_max
,
where y_max
is a known upper bound on the data y
(if specified).
round_floor(z, y_max = Inf)
z |
the real-valued input(s) |
y_max |
a fixed and known upper bound for all observations; default is |
The count-valued output(s) from the rounding function.
# Floor function:
round_floor(1.5)
round_floor(0.5)
# Special treatmeant of negative numbers:
round_floor(-1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.