get_ageprep2: Get age preparation 2 options - A list of age preparation 2...

View source: R/get_ageprep2.R

get_ageprep2R Documentation

Get age preparation 2 options - A list of age preparation 2 codes used in GLIS

Description

This function accesses the api endpoint for age preparation 2 choices and returns their labels, descriptions and whether they're in use. It fetches the entire table of valid age preparation 2 codes - no other filter parameters are currently available for this endpoint.

Usage

get_ageprep2(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

Note that age preparation 2 codes are valid for the second character of the AGEMT field.

See https://intra.glis.mnr.gov.on.ca/common/ageprep2/ for the full list of age preparation 2 code options

Value

dataframe

Author(s)

Rachel Henderson rachel.henderson@ontario.ca

Examples


ageprep2 <- get_ageprep2()
ageprep2_slugs <- get_ageprep2(show_id = TRUE)

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