Skip to content

Commit

Permalink
use of sample month values (rather than trip month) when available
Browse files Browse the repository at this point in the history
  • Loading branch information
ecophilina committed Sep 9, 2024
1 parent e5c5b59 commit 0abf3c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/maturity.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ fit_mat_ogive <- function(dat,
link = c("logit", "probit", "cloglog", "cauchit", "log")) {
link <- match.arg(link)

if(!("month" %in% names(dat))){
dat <- mutate(dat, month = lubridate::month(trip_start_date))
}

dat <- dat %>% filter(maturity_convention_code != 9)

Expand Down

0 comments on commit 0abf3c1

Please sign in to comment.