Skip to content

Commit

Permalink
fix: update rtables codes
Browse files Browse the repository at this point in the history
it seems summarize_vars is replaced by analyze_vars
  • Loading branch information
davidgohel committed May 5, 2024
1 parent 5f6203b commit 6d6d2a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tables-book/04-01-demographics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ lyt <- basic_table(title = "x.x: Study Subject Data",
"Table x.x.x.x: Demographic Characteristics - Full Analysis Set"),
prov_footer = "Source: ADSL DDMMYYYY hh:mm; Listing x.xx; SDTM package: DDMMYYYY") |>
split_cols_by("ARM") |>
summarize_vars(c("AGE", "SEX", "COUNTRY"))
analyze_vars(c("AGE", "SEX", "COUNTRY"))
build_table(lyt, ex_adsl)
```
Expand Down
4 changes: 2 additions & 2 deletions tables-book/04-05-disposition.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ lyt <- basic_table(show_colcounts = TRUE) |>
.labels = c(count_fraction = "Ongoing Study")) |>
split_rows_by("EOSSTT",
split_fun = keep_split_levels("DISCONTINUED")) |>
summarize_vars("DCSREAS",
analyze_vars("DCSREAS",
.stats = "count_fraction",
denom = "N_col") |>
split_rows_by("DCSREAS",
split_fun = keep_split_levels("DEATH")) |>
summarize_vars("DTHCAUS",
analyze_vars("DTHCAUS",
.stats = "count_fraction",
denom = "N_col")
Expand Down

0 comments on commit 6d6d2a1

Please sign in to comment.