populate_fn012: Populate the FN012-Sampling Specs Table

View source: R/populate_template.R

populate_fn012R Documentation

Populate the FN012-Sampling Specs Table

Description

This function populates the FN012 table for project selected by the provided filters. Attributes of the FN011, FN123, FN124 and FN125 elements in the data list are used to augment rows and their attributes in instances where those rows don't already exist. If prune_fn012 is TRUE only records that do not have any corresponding entries in the FN123 table are dropped.

Usage

populate_fn012(
  filters,
  glis_data,
  prune_fn012,
  source = c("assessment", "creel")
)

Arguments

filters
  • list of filters used to select projects

glis_data
  • the named list data fetched from the glis api

prune_fn012
  • boolean - should unused FN012 records be removed from the table?

source
  • 'assessment' or 'creel'

Value

dataframe

Author(s)

Adam Cottrill adam.cottrill@ontario.ca


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