Skip to content

Commit

Permalink
MAJOR BUG FIX -- introduced on Jan. 6 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ecophilina committed May 4, 2024
1 parent bd01256 commit 462163c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/split-by-sex-maturity.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ split_catch_by_sex <- function(survey_sets, fish,
# since not splitting by sex for immatures, we want to include immatures that were not able to be sexed
fish_groups <- bind_rows(f_fish, m_fish, imm_fish) %>%
# but only when sexes where collected for other specimens
filter(fishing_event_id %in% unique(f_fish$fishing_event_id, m_fish$fishing_event_id)) %>%
filter(fishing_event_id %in% c(f_fish$fishing_event_id, m_fish$fishing_event_id)) %>%
mutate(group_name = ifelse(mature == 1,
paste("Mature", ifelse(sex == 1, "males", "females")),
"Immature"
Expand Down

0 comments on commit 462163c

Please sign in to comment.