round_to | R Documentation |
Round to a Specified Value
round_to(x, accuracy, direction = c("nearest", "up", "down", "random"))
x |
A numeric value to round. |
accuracy |
The accuracy with which to round (i.e., round to the nearest
|
direction |
The direction to round. |
A numeric rounded to the specified accuracy.
Matthews, G., & Harel, O. (2011). Data confidentiality: A review of methods for statistical disclosure limitation and methods for assessing privacy. Statistics Surveys, 5, 1–29. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/11-SS074")}
round_to(15, accuracy = 7, direction = "nearest")
round_to(15, accuracy = 7, direction = "up")
round_to(20, accuracy = 7, direction = "down")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.