Skip to content

Commit 7fd20b6

Browse files
committed
fix for get_Recruits
1 parent e8de79e commit 7fd20b6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

DEVELOPMENT.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ get_LifeHistory(multiHist) %>% head()
205205
get_LifeHistory(MMSE) %>% head()
206206

207207

208+
209+
get_SB_SBMSY(MSE)
210+
211+
x <- get_ts(multiHist, variable = "F_FMSY")
212+
213+
208214
# Plots ------
209215

210216
# Note: August 2023 - currently plotting functions don't work for MMSE and multiHist objects

R/get_data_frames.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,10 @@ mse.recruits <- function(x) {
854854
if (length(x@Misc$extended)<1)
855855
stop('Need to use `extended=TRUE` argument for `runMSE`, or update to a more recent version of `MSEtool` and run `runMSE` again')
856856
}
857-
as.vector(apply(x@N[,1,,,], c(1,2,3), sum))
857+
recs <- x@N[,1,,,]
858+
as.vector(apply(recs, 1:2, sum))
859+
860+
858861
}
859862

860863

0 commit comments

Comments
 (0)