Skip to contents

Converts a data frame of GPS fishing observations to a projected `sf` POINT object. Rows with missing coordinates are dropped. The result is in a metric CRS suitable for distance-based operations such as grid creation and spatial joins.

Usage

prep_fishing_points(
  df,
  lat_col = "lat",
  lon_col = "lon",
  crs_projected = 32632
)

Arguments

df

A data frame containing GPS fishing point records.

lat_col

Character. Name of the latitude column. Default is `"lat"`.

lon_col

Character. Name of the longitude column. Default is `"lon"`.

crs_projected

Integer. EPSG code of the target projected CRS. Default is `32632` (UTM zone 32N). Choose a zone that covers your study area for accurate metric distances.

Value

An `sf` POINT object in the requested projected CRS.

See also

[create_reference_grid()], [aggregate_daily_effort()]