View source: R/get_pt_projects.R
get_pt_projects | R Documentation |
This function accesses the api endpoint to for projects in project
tracker. This api endpoint accepts a large number of filters
associated with the project including spatial filters for buffered
point, or region of interest. Project specific filters include
project code(s), years, lakes, and project lead. Use
show_filters("projects")
to see the full list of available
filters. This function returns a dataframe containing attributes
of the project including project code, project name, start and end
date, and project lead.
get_pt_projects(filter_list = list(), to_upper = TRUE)
filter_list |
list |
to_upper |
|
dataframe
Adam Cottrill adam.cottrill@ontario.ca
projects <- get_pt_projects(list(
lake = "ON", year__gte = 2016,
year__lte = 2018
))
projects <- get_pt_projects(list(
lake = "HU", year__gte = 2018,
prj_cd__like = "006"
))
projects <- get_pt_projects(list(lake = "ER", year__gte = 2018))
filters <- list(lake = "SU", prj_cd = c("LSA_IA15_CIN", "LSA_IA17_CIN"))
projects <- get_pt_projects(filters)
projects <- get_pt_projects(list(lake = "HU", year__gte = 2018))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.