fish_trip_simulation: Run Fish Trip Simulation Function to run fish_trip...

Description Usage Arguments Examples

View source: R/fish_trip_simulation.R

Description

Run Fish Trip Simulation Function to run fish_trip simulations in parallel

Usage

1

Arguments

nreps

Number of replicates; each nrep corresponds to a seed

ncores

Number of cores; used in mclapply

ntows

Number of tows; start of input into fish_trip function

scope

Scope of movement

input

Overall input to the function; defaults to filt_clusts which is the data with clusters filtered to include clusters with the most tows

ntows

Number of tows in the fishing trip

start_clust

Starting cluster to fish in

quotas

Data frame of quota for target and weak stock species

scale

Scale of movement; if scale == 'port', specify a d_port; if scale == 'scope', specify scale

prob_type

Probability type; type_prop_hauls – frequency of encounter or type_clust_perc – proportion of catch in each cluster

Examples

1
2
3
4
5
#Specify arguments as a list
in_list <- list(nreps = 6, ncores = 6, ntows = 20, scope = 5, 
  scale = 'scope', the_port = "ASTORIA / WARRENTON", prob_type = "type_clust_perc",
  quotas = quotas)
run_fish_trip_simulation(in_list)

peterkuriyama/ch4 documentation built on June 18, 2021, 9:59 a.m.