augment_fn012: Augment the FN012 data

View source: R/populate_template.R

augment_fn012R Documentation

Augment the FN012 data

Description

the fn012 data downloaded from the api, may be incomplete, missing species and groups that that were actually encountered in the associated projects. This function adds records to the FN012 table in these instances. If the missing spc-grp combinations can be found in the FN012 protocols table, those values are used, otherwise default values for the species are used instead. If prune=TRUE SPC-GRP combinations that appear in the FN012 table, but not in the FN123 table, are dropped from the FN012 before it is returned.

Usage

augment_fn012(fn011, fn012, fn123, prune_fn012, source)

Arguments

fn011
  • dataframe contains fn011 data

fn012
  • dataframe contains fn012 data fetched from the api for given filters

fn123
  • dataframe contains fn123 data fetched from the api for given filters

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

source
  • string. Either "assessment" or "creel"

Value

dataframe

Author(s)

Adam Cottrill adam.cottrill@ontario.ca

See Also

populate_fn012


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