unite_by_source: Unite by source This function gets a 'STRATA_USED_DESC' for a...

View source: R/unite_by_source.R

unite_by_sourceR Documentation

Unite by source This function gets a 'STRATA_USED_DESC' for a data frame. This must be used witha specific 'DISCARD_SOURCE' and 'GF' grouping.

Description

Unite by source This function gets a 'STRATA_USED_DESC' for a data frame. This must be used witha specific 'DISCARD_SOURCE' and 'GF' grouping.

Usage

unite_by_source(mytable)

Arguments

mytable

input table from discard estiamtion

Value

table with STRATA_USED_DESC column

Author(s)

Benjamin Galuardi

Examples


tab_list =joined_table %>%
group_split(DISCARD_SOURCE, GF) %>%   # group_split may be deprecated in the future..
  lapply(., unite_by_source)

joined_table = do.call(rbind, tab_list) %>%
  as_tibble()


noaa-garfo/discaRd documentation built on April 17, 2025, 10:32 p.m.