View source: R/glfishr_utils.R
uncount_tally | R Documentation |
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().
uncount_tally(df, tally_col)
df |
FN124 table fetched from GLIS using get_FN124() |
tally_col |
Column name where the tally is stored; enter as a string |
dataframe
LOA_IA21_TW1 <- get_FN124(list(prj_cd = "LOA_IA21_TW1"))
LOA_IA21_TW1_long <- uncount_tally(LOA_IA21_TW1, "SIZCNT")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.