VarStaticCutSplit-class | R Documentation |
Splits for cutting by values of a numeric variable
Create static cut or static cumulative cut split
make_static_cut_split(
var,
split_label,
cuts,
cutlabels = NULL,
cfun = NULL,
cformat = NULL,
cna_str = NA_character_,
split_format = NULL,
split_na_str = NA_character_,
split_name = var,
child_labels = c("default", "visible", "hidden"),
extra_args = list(),
indent_mod = 0L,
cindent_mod = 0L,
cvar = "",
cextra_args = list(),
label_pos = "visible",
cumulative = FALSE,
page_prefix = NA_character_,
section_div = NA_character_
)
VarDynCutSplit(
var,
split_label,
cutfun,
cutlabelfun = function(x) NULL,
cfun = NULL,
cformat = NULL,
cna_str = NA_character_,
split_format = NULL,
split_na_str = NA_character_,
split_name = var,
child_labels = c("default", "visible", "hidden"),
extra_args = list(),
cumulative = FALSE,
indent_mod = 0L,
cindent_mod = 0L,
cvar = "",
cextra_args = list(),
label_pos = "visible",
page_prefix = NA_character_,
section_div = NA_character_
)
var |
string, variable name |
split_label |
string. Label string to be associated with the table generated by the split. Not to be confused with labels assigned to each child (which are based on the data and type of split during tabulation). |
cuts |
numeric. Cuts to use |
cutlabels |
character (or NULL). Labels for the cuts |
cfun |
list/function/NULL. tabulation function(s) for creating content
rows. Must accept |
cformat |
format spec. Format for content rows |
cna_str |
character. NA string for use with |
split_format |
|
split_na_str |
character. NA string vector for use with |
split_name |
string. Name associated with this split (for pathing, etc) |
child_labels |
string. One of |
extra_args |
list. Extra arguments to be passed to the tabulation function. Element position in the list corresponds to the children of this split. Named elements in the child-specific lists are ignored if they do not match a formal argument of the tabulation function. |
indent_mod |
numeric. Modifier for the default indent position for the structure created by this function(subtable, content table, or row) and all of that structure's children. Defaults to 0, which corresponds to the unmodified default behavior. |
cindent_mod |
numeric(1). The indent modifier for the content tables generated by this split. |
cvar |
character(1). The variable, if any, which the content function should accept. Defaults to NA. |
cextra_args |
list. Extra arguments to be passed to the content function when tabulating row group summaries. |
label_pos |
character(1). Location the variable label should be
displayed, Accepts |
cumulative |
logical. Should the cuts be treated as cumulative. Defaults
to |
page_prefix |
character(1). Prefix, to be appended with the split value, when forcing pagination between the children of this split/table |
section_div |
character(1). String which should be repeated as a section
divider after each group defined by this split instruction, or
|
cutfun |
function. Function which accepts the full vector of
|
cutlabelfun |
function. Function which returns either labels for the
cuts or NULL when passed the return value of |
a VarStaticCutSplit
, CumulativeCutSplit
object for
make_static_cut_split
, or a VarDynCutSplit
object for
VarDynCutSplit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.