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