akfinConvert_LatLonsToADFGStatAreas: Convert lat-lon coordinates to ADFG stat areas

View source: R/akfinConvert_ADFGStatAreas-LatLons.R

akfinConvert_LatLonsToADFGStatAreasR Documentation

Convert lat-lon coordinates to ADFG stat areas

Description

Function to convert lat-lon coordinates to ADFG stat areas.

Usage

akfinConvert_LatLonsToADFGStatAreas(dfr, latCol = "lat", lonCol = "lon")

Arguments

dfr

: dataframe with lat, lon coordinates

latCol

: name of column with latitudes

lonCol

: name of column with longitudes

Details

ADFG stat areas are coded AABBCC, where
lon = 100+AA W longitude
and
lat = BB+CC/60 N latitude
in decimal degrees.

AABBCC represents the lower right corner of the stat area.

Value

a character vector with the ADFG stat area corresponding to each set of lat-lon coordinates.


wStockhausen/tcsamFisheryDataAKFIN documentation built on Aug. 30, 2023, 12:08 p.m.