subset_cols | R Documentation |
Subset a table or row to particular columns
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'TableTree,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'ElementaryTable,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'ANY,character'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'TableRow,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'LabelRow,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'InstantiatedColumnInfo,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
## S4 method for signature 'LayoutColTree,numeric'
subset_cols(
tt,
j,
newcinfo = NULL,
keep_topleft = TRUE,
keep_titles = TRUE,
keep_footers = keep_titles,
...
)
tt |
( |
j |
( |
newcinfo |
( |
keep_topleft |
( |
keep_titles |
( |
keep_footers |
( |
... |
Ignored. |
lyt <- basic_table(
title = "Title",
subtitles = c("Sub", "titles"),
prov_footer = "prov footer",
main_footer = "main footer"
) %>%
split_cols_by("ARM") %>%
split_cols_by("SEX") %>%
analyze(c("AGE"))
tbl <- build_table(lyt, DM)
subset_cols(tbl, c(1, 3))
subset_cols(tbl, c("ARM", "*", "SEX", "F"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.