get_management_units: Get management units - A list of management units in GLIS

View source: R/get_management_units.R

get_management_unitsR Documentation

Get management units - A list of management units in GLIS

Description

This function accesses the api endpoint for management units (MUs) and returns MU names, types, centroids, envelopes, and associated lakes. It is useful for fetching a table of all MUs currently in GLIS, but it also accepts the filter parameters 'lake' and 'mu_type' to further filter results.

Usage

get_management_units(filter_list = list(), show_id = FALSE, to_upper = TRUE)

Arguments

filter_list

list

show_id

include the fields the 'id' and 'slug' in the returned data frame

to_upper

should the names of the dataframe be converted to upper case?

Details

See https://intra.glis.mnr.gov.on.ca/common/management_units/ for the full list of management units

Value

dataframe

Examples

get_management_units()
get_management_units(list(lake = "HU"))
get_management_units(list(lake = "HU", mu_type = "basin"))

AdamCottrill/glfishr documentation built on Aug. 9, 2024, 5:47 p.m.