drop: Drop an element from an FLSAM.control object

drop.from.controlR Documentation

Drop an element from an FLSAM.control object

Description

Drops multiple surveys or age groups from an FLSAM.control object

Usage

drop.from.control(object, fleets="missing",ages="missing")

Arguments

object

An FLSAM.control object

fleets

A vector containing the names of the fleets to be dropped

ages

A vector containing the names of the age groups to be dropped

Details

This function can be used to modify an FLSAM.control object by removing one or more fleets, or one or more age groups from the object. Changes in the sequence of bindings that may arise due to the removal of a fleet or age group are corrected for using the update function.

Value

An FLSAM.control object

Author(s)

Mark R. Payne.

See Also

update, FLSAM.control

Examples

#Load assessment
library(FLSAM)
data(NSH)
#NSH.ctrl before dropping
NSH.ctrl
#Drop MLAI index
drop.from.control(NSH.ctrl,fleets="MLAI")
#Drop ages 8 and 9
drop.from.control(NSH.ctrl,ages=8:9)

flr/FLSAM documentation built on April 18, 2024, 4:54 p.m.