Skip to contents

A function that assigns the Longhurst province and description to each spatial feature.

Usage

match_Longhurst(df)

Arguments

df

An sf object to be matched to longhurst

Value

An sf dataframe with additional longhurst columns (ProvCode, ProvDescr)

Examples

df <- data.frame(lon = c(150, 160),
                 lat = c(-32, -38)) %>%
  sf::st_as_sf(coords = c("lon", "lat"), crs = "EPSG:4326") %>%
  match_Longhurst()