Skip to content

Commit

Permalink
Update get_data_frames.R
Browse files Browse the repository at this point in the history
AdrianHordyk committed Sep 6, 2023
1 parent d1cc53a commit e8de79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/get_data_frames.R
Original file line number Diff line number Diff line change
@@ -498,6 +498,7 @@ match_at_age_ts_variable <- function(variable='Spawning Biomass', class='Hist')
#' @rdname get_ts
get_ts.Hist <- function(x, variable='Spawning Biomass', model='Model 1', scale=NULL) {
slot <- match_ts_variable(variable, 'Hist')
if (length(slot)==0) stop(variable, ' currently not supported for this object')
if (grepl('\\()', slot)) {
fn <- gsub('\\()','', slot)
value <- get(fn)(x)
@@ -550,6 +551,7 @@ get_ts.MSE <- function(x, variable='Spawning Biomass', model='Model 1', scale=NU

# Projection
slot <- match_ts_variable(variable, 'MSE')
if (length(slot)==0) stop(variable, ' currently not supported for this object')
if (grepl('\\()', slot)) {
fn <- gsub('\\()','', slot)
value <- get(fn)(x)
@@ -614,6 +616,7 @@ get_ts.multiHist <- function(x, variable='Spawning Biomass', model='Model 1', sc
nsim <- x[[1]][[1]]@Misc$MOM@nsim

slot <- match_ts_variable(variable, 'Hist')
if (length(slot)==0) stop(variable, ' currently not supported for this object')

stock_list <- list()
if (!by_fleet) {

0 comments on commit e8de79e

Please sign in to comment.