comb_LeMans_run {LeMaRns}R Documentation

Combine two LeMans_outputs objects

Description

Combines two LeMans_outputs objects.

Usage

comb_LeMans_run(LeMans_run_x, LeMans_run_y, cont = TRUE)

Arguments

LeMans_run_x

A LeMans_outputs object.

LeMans_run_y

A LeMans_outputs object.

cont

A logical statement indicating whether or not LeMans_run_y is a continuation of LeMans_run_x. The default is TRUE.

Details

If cont==T, the first years output from LeMans_run_y is removed as this will be the same as the last year of LeMans_run_x.

Value

A LeMans_outputs object.

See Also

LeMans_outputs, run_LeMans

Examples

# Set up the inputs to the model
NS_params <- LeMansParam(NS_par, tau=NS_tau, eta=rep(0.25, 21), L50=NS_par$Lmat, other=NS_other)

# Define fishing effort
effort <- matrix(0.5, 10, dim(NS_params@Qs)[3])

# Run the model for the first time
model_run1 <- run_LeMans(NS_params, years=10, effort=effort)

# Run the model for another 12 years
effort1 <- matrix(0.5, 12, dim(NS_params@Qs)[3])
model_run2 <- run_LeMans(N=model_run1@N[,,101], NS_params, years=12, effort=effort1)

# Combine the two model runs into a single run
out <- comb_LeMans_run(model_run1, model_run2, cont=TRUE)

[Package LeMaRns version 0.1.2 Index]