get_tissues: Get tissues - A list of tissue types used in GLIS

View source: R/get_tissues.R

get_tissuesR Documentation

Get tissues - A list of tissue types used in GLIS

Description

This function accesses the api endpoint for tissue types and returns their names, descriptions and whether they're in use. It can fetch the entire table of accepted tissue codes, or it accepts filter parameter all=TRUE to return depreciated tissue codes too. No other filter parameters are currently available for this endpoint.

Usage

get_tissues(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/tissues/ for the full list of tissues

Value

dataframe

Author(s)

Rachel Henderson rachel.henderson@ontario.ca

Examples


tissues <- get_tissues()
all_tissues <- get_tissues(list(all = TRUE))
tissue_slugs <- get_tissues(show_id = TRUE)

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