get_SC124 | R Documentation |
This function accesses the api endpoint for SC124 records from the Creel_Portal. SC124 records contain information about the length frequency by species associated with an angler interview. Group (GRP) is occasionally included to further sub-divide the catch into user defined groups that are usually specific to the project. This function takes an optional filter list which can be used to return record based on several attributes of the catch including species or group code but also attributes of the effort, the sample or the project(s) that the catches were made in.
get_SC124(
filter_list = list(),
show_id = FALSE,
to_upper = TRUE,
uncount = FALSE
)
filter_list |
list |
show_id |
When 'FALSE', the default, the 'id' and 'slug' fields are hidden from the data frame. To return these columns as part of the data frame, use 'show_id = TRUE'. |
to_upper |
|
uncount |
|
Use show_filters("sc124")
to see the full list of available
filter keys (query parameters). Refer to
https://intra.glis.mnr.gov.on.ca/creels/api/v1/swagger/ and
filter by "sc124" for additional information.
dataframe
Jeremy Holden jeremy.holden@ontario.ca
sc124 <- get_SC124(list(lake = "ON", year = 2021, spc = "334"))
filters <- list(
lake = "ON",
year = 2021,
spc = c("061", "121")
)
sc124 <- get_SC124(filters)
sc124 <- get_SC124(list(prj_cd = "LOA_SC19_002"),
uncount = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.