get_pt_associated_files: get_pt_associated_files - Project Tracker Associated Files

View source: R/get_pt_associated_files.R

get_pt_associated_filesR Documentation

get_pt_associated_files - Project Tracker Associated Files

Description

This function accesses the api endpoint for associated files that have been uploaded to project tracker. This api endpoint accepts a large number of filters associated with the project. Project specific filters include project code(s), years, lakes, and project lead. Use show_filters("associated_files") to see the full list of available filters. This function returns a dataframe containing attributes of the upload files, including project code, and the path to the file on the server. It is often used in conjunction with fetch_pt_associated_files() to actually download the selected files to a target directory.

Usage

get_pt_associated_files(filter_list = list(), to_upper = TRUE)

Arguments

filter_list

list

to_upper
  • should the names of the returned dataframe be converted to upper case?

Value

dataframe

Author(s)

Adam Cottrill adam.cottrill@ontario.ca

See Also

fetch_pt_associated_files()

Examples

## Not run: 
filters <- list(lake = "HU", year__gte = 2012, year__lte = 2018)
files <- get_pt_associated_files(filters)

filters <- list(lake = "HU", year__gte = 2012, prj_cd__like = "006")
files <- get_pt_associated_files(filters)

files <- get_pt_associated_files(list(lake = "ER"))

filters <- list(lake = "SU", prj_cd = c("LSA_IA15_CIN", "LSA_IA17_CIN"))
files <- get_pt_associated_files(filters)

files <- get_pt_associated_files(list(lake = "HU"))

## End(Not run)


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