uncount_tally: Uncount Tallies

View source: R/glfishr_utils.R

uncount_tallyR Documentation

Uncount Tallies

Description

This function "uncounts" a tally, duplicating each row a number of times equal to the value in the selected tally column. It is a simplified version of the tidyr function uncount().

Usage

uncount_tally(df, tally_col)

Arguments

df

FN124 table fetched from GLIS using get_FN124()

tally_col

Column name where the tally is stored; enter as a string

Value

dataframe

Examples

LOA_IA21_TW1 <- get_FN124(list(prj_cd = "LOA_IA21_TW1"))
LOA_IA21_TW1_long <- uncount_tally(LOA_IA21_TW1, "SIZCNT")

AdamCottrill/glfishr documentation built on Aug. 9, 2024, 5:47 p.m.