rep_ocean_opt: Convenience function to replicate PFMC fishery inputs across...

View source: R/rep_ocean_opt.R

rep_ocean_optR Documentation

Convenience function to replicate PFMC fishery inputs across FRAM RunIDs

Description

This updates a OceanOptMergeFile.R script developed by Jon Carey. Maintains DELETE then append pattern, avoiding possibly slow rewrite of entire FisheryScalers in a project mdb with many runs. Also left as single pairwise RunIDs and fixed FisheryIDs rather than passing as args.

Script updated to include passing data from non-retention table.

Usage

rep_ocean_opt(db, run_from, run_to)

Arguments

db

string, file path to database

run_from

numeric, "donor" run

run_to

numeric, "recipient" run

Value

Nothing, but database tables are altered.


FRAMverse/framr documentation built on Jan. 29, 2023, 1:55 a.m.