get_lakes: Get lakes - A list of lake names and abbreviations used in...

View source: R/get_lakes.R

get_lakesR Documentation

Get lakes - A list of lake names and abbreviations used in GLIS

Description

This function accesses the api endpoint for lake names and returns lake names and abbreviations. It is useful for fetching a table of all lakes accepted by GLIS, but it also accepts the filter parameter 'lake' to specify one or more lakes (by abbreviation) to fetch.

Usage

get_lakes(filter_list = list(), to_upper = TRUE)

Arguments

filter_list

list

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

Details

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

Value

dataframe

Author(s)

Rachel Henderson rachel.henderson@ontario.ca

Examples


lake_list <- get_lakes()
erie <- get_lakes(list(lake = "ER"))
upper_lakes <- get_lakes(list(lake = c("HU", "SU")))

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