ll2strat: Lon lat to strat

Description Usage Arguments Details Value

View source: R/formatStrat.R

Description

Convert longitude and latitude vectors to strata

Usage

1
ll2strat(lon, lat, gridSize = 1)

Arguments

lon

numeric vector of longitude

lat

numeric vector of latitude

gridSize

numeric indicating fraction for rounding

Details

gridSize is passed to frac in roundGrid. Defines a stratum based on rounding to the center of the nearest grid cell, of the specific size (gridSize).

Value

Character vector indicating the center of the defined stratum as the gridded lon and lat.


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