Skip to content

Commit 9d9a055

Browse files
[skip style] [skip vbump] Restyle files
1 parent 0fb80c2 commit 9d9a055

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

R/fda-table_02.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ make_table_02 <- function(df,
5353
# create a table using gtsummary
5454
df %>%
5555
gtsummary::tbl_summary(
56-
by = arm_var)
56+
by = arm_var
57+
)
5758

5859
tbl <- df %>%
5960
gtsummary::tbl_summary(
@@ -67,7 +68,8 @@ make_table_02 <- function(df,
6768
all_categorical() ~ "{n} ({p}%)"
6869
),
6970
digits = all_continuous() ~ 2,
70-
missing = "no") %>%
71+
missing = "no"
72+
) %>%
7173
gtsummary::bold_labels() %>%
7274
gtsummary::modify_header(all_stat_cols() ~ "**{level}** \nN = {n}") %>%
7375
gtsummary::add_overall(last = TRUE, col_label = paste0("**", "Total Population", "** \nN = {n}")) %>%

tests/testthat/test-fda-table_02.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
adsl <- adsl_raw %>%
22
filter(SAFFL == "Y") %>%
3-
mutate(AGEGR1 = as.factor(case_when(
3+
mutate(AGEGR1 = as.factor(case_when(
44
AGE >= 17 & AGE < 65 ~ ">=17 to <65",
55
AGE >= 65 ~ ">=65",
66
AGE >= 65 & AGE < 75 ~ ">=65 to <75",
77
AGE >= 75 ~ ">=75"
8-
))) %>%
8+
))) %>%
99
df_explicit_na()
1010

1111
test_that("Table 02 generation works with default values", {

0 commit comments

Comments
 (0)