
Identify geographic centroid of fishery management or regulatory zone
Source:R/find_centroid.R
find_centroid.RdIdentify geographic centroid of fishery management or regulatory zone
Usage
find_centroid(
spat,
project,
spatID,
lon.spat = NULL,
lat.spat = NULL,
cent.name = NULL,
log.fun = TRUE
)Arguments
- spat
Spatial data containing information on fishery management or regulatory zones. Can be shape file, json, geojson, data frame, or list.
- project
Name of project
- spatID
Variable or list in
spatthat identifies the individual areas or zones. Ifspatis class sf,spatIDshould be name of list containing information on zones.- lon.spat
Variable or list from
spatcontaining longitude data. Required for csv files. Leave as NULL ifspatis a shape or json file.- lat.spat
Variable or list from
spatcontaining latitude data. Required for csv files. Leave as NULL ifspatis a shape or json file.- cent.name
String, name to include in centroid table. Centroid name take the form of `"projectNameZoneCentroid"`. Defaults to `NULL` (e.g. `"projectZoneCentroid"`).
- log.fun
Logical, whether to log function call (for internal use).