You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Function Details**: This tab includes details on the table-generating function used for this template. Table functions use the naming convention `make_table_XX()` where `XX` is the table number taken from the FDA Standard Safety Table and Figures document (preceded by a 0 if the number is a single digit). Any required variables for the input datasets are listed along with a description of all function arguments. This information is mirrored by the function's help page accessible within R (i.e. `?make_table_XX`).
69
+
-**Function Details**: This tab includes details on the table-generating function used for this template. Table functions use the naming convention `make_table_XX()` where `XX` is the table number taken from the FDA Standard Safety Table and Figures document (preceded by a 0 if the number is a single digit). Any required variables for the input datasets are listed along with a description of all function arguments. This information is mirrored by the function's help page accessible within R (i.e. `?make_table_XX`). By default, all table generating functions use the {gtsummary} package - though we do support rtables functionality. To specify the use of which table engine is being used, engine specific functions can be called (`make_table_02_rtables`, for example).
vars = c("SEX", "AGE", "RACE", "COUNTRY", "AVAL"),
119
-
lbl_vars = c("Sex", "Age, years", "Race", "Country of Participation", "Baseline Temperature (C)"),
120
-
lbl_overall = "Total\nPopulation",
121
-
na_rm = TRUE
120
+
vars = c("SEX", "AGE", "RACE", "COUNTRY", "AVAL")
122
121
)
123
-
tbl
122
+
tbl$tbl
124
123
```
125
124
126
125
Note that the `prune_0` argument can be set to specify whether all-zero rows should be included in a table. For example, see that the demographics table below includes rows for `OTHER` and `UNKNOWN` for which all values are zero, whereas these two rows were excluded from the previous tables (`prune_0` defaults to `TRUE` in `make_table_02()`).
127
126
128
127
```{r, echo=TRUE}
129
-
make_table_02(df = anl, vars = "RACE", prune_0 = FALSE)
128
+
make_table_02_rtables(df = anl, vars = "RACE", prune_0 = FALSE)
0 commit comments