run_vast_condition: Run VAST to estimate fish condition

View source: R/vast_functions.R

run_vast_conditionR Documentation

Run VAST to estimate fish condition

Description

Run VAST to estimate fish condition

Usage

run_vast_condition(
  x,
  n_knots = NULL,
  response = "count",
  fork_lengths_mm = NULL
)

Arguments

x

data.frame containing species_code, region, ObsModel_1, ObsModel_2, ObsModel_3, and ObsModel_4.

n_knots

Number of knots to use to generate the mesh. Default NULL = use n_knots from the input data.frame.

response

"count" or "biomass"

fork_lengths_mm

Optional. Lengths in millimeters to use. Passed to akfishcondition::select_species()

Examples

x <- dplyr::filter(akfishcondition::ESR_SETTINGS$VAST_SETTINGS, region == "EBS")
x <- dplyr::filter(x, species_code == 21740)
run_vast_condition(x = x, n_knots = 250)

sean-rohan-NOAA/akfishcondition documentation built on June 9, 2025, 3:54 p.m.