Skip to content

Commit

Permalink
troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty-WDFW committed Jan 2, 2025
1 parent a44f254 commit 8364381
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions R/post_season.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ post_season_abundance <- function(fram_db, units = c('ja3', 'oa3')){

validate_fram_db(fram_db)

unit <- rlang::arg_match(unit)
unit <- rlang::arg_match(units)

if(fram_db$fram_db_species != "COHO"){
cli::cli_abort('This function currently only works with coho')
Expand Down Expand Up @@ -77,15 +77,11 @@ post_season_abundance <- function(fram_db, units = c('ja3', 'oa3')){
# take out natural mortality if oa3
tidyr::pivot_wider(names_from = .data$run_year,
values_from = .data$recruit_cohort_size) |>
dplyr::mutate(dplyr::across(-dplyr::any_of(
c(
.data$stock_id,
.data$stock_name,
.data$run_year,
.data$recruit_cohort_size,
.data$origin
)
), \(x) x / 1.2317))
dplyr::mutate(
dplyr::across(
-c(.data$stock_id, .data$stock_name, .data$origin)
, \(x) x / 1.2317)
)
}

}
Expand Down

0 comments on commit 8364381

Please sign in to comment.