roundGrid: Round Grid

Description Usage Arguments Details See Also

View source: R/formatStrat.R

Description

Round values to snap to a fraction of a grid

Usage

1
roundGrid(x, frac = 1)

Arguments

x

numeric value to be rounded; can be a vector

frac

numeric value representing the size of the grid

Details

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.

See Also

ll2strat


rBatt/trawlData documentation built on May 26, 2019, 7:45 p.m.