Skip to content

Commit

Permalink
Add discard pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Oct 17, 2024
1 parent 78da9e4 commit bdb14bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analysis/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ tidy_catch_dogfish <- function(
`UNKNOWN TRAWL` = "Unknown/trawl"
)
) %>%
select(year, area, species_common_name, gear, landed_kg, discarded_kg)
select(year, area, species_common_name, gear, landed_kg, discarded_kg, discarded_pcs)

# cm <- reshape2::melt(catches,
# id.vars = c("year", "species_common_name", "area", "gear")
Expand All @@ -46,6 +46,7 @@ tidy_catch_dogfish <- function(
summarise(
landed_kg = sum(landed_kg, na.rm = TRUE),
discarded_kg = sum(discarded_kg, na.rm = TRUE),
discarded_pcs = sum(discarded_pcs, na.rm = TRUE),
.groups = "drop")

all_catch
Expand Down
Binary file modified data/generated/catch-4B5ABCDE3CD-summarized.rds
Binary file not shown.

0 comments on commit bdb14bc

Please sign in to comment.