Skip to content

Commit

Permalink
Simplify count_occurrences indent mods (#139)
Browse files Browse the repository at this point in the history
Closes #138
  • Loading branch information
edelarua authored Oct 31, 2023
1 parent 23f775a commit 0dfc5c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions book/tables/adverse-events/aet02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
nonunique = "Total number of events"
)
) %>%
count_occurrences(vars = "AEDECOD", .indent_mods = c(count_fraction = -1L)) %>%
count_occurrences(vars = "AEDECOD", .indent_mods = -1L) %>%
append_varlabels(adae, c("AEDECOD"), indent = 2L)
result <- build_table(lyt, df = adae, alt_counts_df = adsl) %>%
Expand Down Expand Up @@ -268,7 +268,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
nonunique = "Total number of events"
)
) %>%
count_occurrences(vars = "AEDECOD", .indent_mods = c(count_fraction = -1L)) %>%
count_occurrences(vars = "AEDECOD", .indent_mods = -1L) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
result <- build_table(lyt, df = adae_5, alt_counts_df = adsl) %>%
Expand Down Expand Up @@ -306,7 +306,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down Expand Up @@ -418,7 +418,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down Expand Up @@ -466,7 +466,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down Expand Up @@ -514,7 +514,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down Expand Up @@ -562,7 +562,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down Expand Up @@ -610,7 +610,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = 1L)
.indent_mods = 1L
) %>%
append_varlabels(adae, "AEDECOD", indent = 1L)
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet09.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ lyt <- basic_table(show_colcounts = TRUE) %>%
) %>%
count_occurrences(
vars = "AEDECOD",
.indent_mods = c(count_fraction = -1L)
.indent_mods = -1L
) %>%
append_varlabels(adae_f, c("AEDECOD"), indent = 2L)
Expand Down

0 comments on commit 0dfc5c2

Please sign in to comment.