assign_region: Assign region to geographical coordinates.

View source: R/ecology.R

assign_regionR Documentation

Assign region to geographical coordinates.

Description

Assign region to geographical coordinates.

Usage

assign_region(data, what, longitude = "lon", latitude = "lat")

Arguments

data

A data frame including spatial coordinates

what

the database with the geographic areas. Currently, only "longhurst", "LME", "FAO" and "GFMC" are accepted.

longitude

The name of the variable in data with longitud information, by default "lat"

latitude

The name of the variable in data with latitude information, by default "lat"

Value

A vector with the corresponding information (what) for the coordinates in data.


roliveros-ramos/kali documentation built on Jan. 14, 2023, 4:30 a.m.