Description Usage Arguments Details See Also
Round values to snap to a fraction of a grid
1 |
x |
numeric value to be rounded; can be a vector |
frac |
numeric value representing the size of the grid |
If frac
is 1, then round to the nearest whole number. If frac
is 0.5, then snap everything to the nearest half a degree grid. If 10, then snap to the nearest multiple of 10, plus 5 (6 goes to 5, 8 goes to 5, 10 goes to 15, 21 goes to 25, etc). Handy if you have lat-lon data that you want to redefine as being on a grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.