Assign longitude and latitude points to zonal centroid
Source:R/create_variables.R
lonlat_to_centroid.Rd
Assign longitude and latitude points to zonal centroid
Arguments
- dat
Main data frame over which to apply function. Table in FishSET database should contain the string `MainDataTable`.
- project
Project name.
- lon
String, variable name containing longitude.
- lat
String, variable name containing latitude.
- spat
Spatial data table containing regulatory zones. This can be a "spatial feature" or sf object.
- zone
String, column name contain the assigned zone. Must be the same for both the spatial data table and MainDataTable.