Skip to content

Commit

Permalink
fix for get_Recruits
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianHordyk committed Feb 7, 2024
1 parent e8de79e commit 7fd20b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions DEVELOPMENT.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ get_LifeHistory(multiHist) %>% head()
get_LifeHistory(MMSE) %>% head()



get_SB_SBMSY(MSE)

x <- get_ts(multiHist, variable = "F_FMSY")


# Plots ------

# Note: August 2023 - currently plotting functions don't work for MMSE and multiHist objects
Expand Down
5 changes: 4 additions & 1 deletion R/get_data_frames.R
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,10 @@ mse.recruits <- function(x) {
if (length(x@Misc$extended)<1)
stop('Need to use `extended=TRUE` argument for `runMSE`, or update to a more recent version of `MSEtool` and run `runMSE` again')
}
as.vector(apply(x@N[,1,,,], c(1,2,3), sum))
recs <- x@N[,1,,,]
as.vector(apply(recs, 1:2, sum))


}


Expand Down

0 comments on commit 7fd20b6

Please sign in to comment.