Skip to contents

Check station deployment and retrieval locations are within acceptable distance

Usage

ss_check_station_drift(
  log_coords,
  log_crs = 4617,
  max_drift = 100,
  return_drift = FALSE
)

Arguments

log_coords

Data frame with five columns: station, latitude and longitude (the coordinates recorded at deployment) and retrieval_latitude and retrieval_longitude (the coordinates recorded during retrieval).

log_crs

The crs of the coordinates in log_coords.

max_drift

The maximum acceptable distance between the deployment and retrieval coordinates in metres.

return_drift

Logical argument indicating whether to return the drift distance.

Value

Logical value. Returns TRUE if the distance between deployment and retrieval coordinates is less than max_drift. Returns FALSE and a Warning if the distance is greater.