get_project_types: Get project type options - A list of project type codes used...

View source: R/get_project_types.R

get_project_typesR Documentation

Get project type options - A list of project type codes used in GLIS

Description

This function accesses the api endpoint for project type choices and returns their labels, descriptions and whether they're in use. It fetches the entire table of accepted project types - no other filter parameters are currently available for this endpoint. Project type codes represent the fifth and sixth digits of project code (PRJ_CD).

Usage

get_project_types(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/project_types/ for the full list of fisheries_office options

Value

dataframe

Author(s)

Rachel Henderson rachel.henderson@ontario.ca

Examples


fisheries_offices <- get_fisheries_offices()
fisheries_office_slugs <- get_fisheries_offices(show_id = TRUE)

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