add_expr | R Documentation |
Add a new expression to a list (of expressions).
add_expr(expr_ls, new_expr)
expr_ls |
( |
new_expr |
( |
Offers a stricter control to add new expressions to an existing
list. The list of expressions can be later used to generate a pipeline,
for instance with pipe_expr
.
a list
of call
.
library(rtables)
lyt <- list()
lyt <- add_expr(lyt, substitute(basic_table()))
lyt <- add_expr(
lyt, substitute(split_cols_by(var = arm), env = list(armcd = "ARMCD"))
)
lyt <- add_expr(
lyt,
substitute(
test_proportion_diff(
vars = "rsp", method = "cmh", variables = list(strata = "strata")
)
)
)
lyt <- add_expr(lyt, quote(build_table(df = dta)))
pipe_expr(lyt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.