round_to_any | R Documentation |
because we don't want to have to suggest plyr, if we can avoid it.
round_to_any(x, accuracy, f = round)
x |
numeric or date-time (POSIXct) vector to round |
accuracy |
number to round to; for POSIXct objects, a number of seconds |
f |
rounding function: |
a numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.