| get_ageprep2 | R Documentation | 
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.
get_ageprep2(filter_list = list(), show_id = FALSE, to_upper = TRUE)
| filter_list | list | 
| show_id | include the fields the 'id' and 'slug' in the returned data frame | 
| to_upper | 
 | 
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
dataframe
Rachel Henderson rachel.henderson@ontario.ca
ageprep2 <- get_ageprep2()
ageprep2_slugs <- get_ageprep2(show_id = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.