value_formats | R Documentation |
Returns a matrix of formats for the cells in a table
value_formats(obj, default = obj_format(obj))
## S4 method for signature 'ANY'
value_formats(obj, default = obj_format(obj))
## S4 method for signature 'TableRow'
value_formats(obj, default = obj_format(obj))
## S4 method for signature 'LabelRow'
value_formats(obj, default = obj_format(obj))
## S4 method for signature 'VTableTree'
value_formats(obj, default = obj_format(obj))
obj |
A table or row object. |
default |
|
Matrix (storage mode list) containing the effective format for each
cell position in the table (including 'virtual' cells implied by label rows,
whose formats are always NULL
)
lyt <- basic_table() %>%
split_rows_by("RACE", split_fun = keep_split_levels(c("ASIAN", "WHITE"))) %>%
analyze("AGE")
tbl <- build_table(lyt, DM)
value_formats(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.