Define a subset tabulation/analysis
Define a subset tabulation/analysis
AnalyzeVarSplit(
var,
split_label = var,
afun,
defrowlab = "",
cfun = NULL,
cformat = NULL,
split_format = NULL,
inclNAs = FALSE,
split_name = var,
extra_args = list(),
indent_mod = 0L,
label_pos = "default",
cvar = ""
)AnalyzeColVarSplit(
afun,
defrowlab = "",
cfun = NULL,
cformat = NULL,
split_format = NULL,
inclNAs = FALSE,
split_name = "",
extra_args = list(),
indent_mod = 0L,
label_pos = "default",
cvar = ""
)
AnalyzeMultiVars(
var,
split_label = "",
afun,
defrowlab = "",
cfun = NULL,
cformat = NULL,
split_format = NULL,
inclNAs = FALSE,
.payload = NULL,
split_name = NULL,
extra_args = list(),
indent_mod = 0L,
child_labels = c("default", "topleft", "visible", "hidden"),
child_names = var,
cvar = ""
)
string, variable name
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).
function. Analysis function, must take x
or df
as its first parameter. Can optionally take other parameters which will be populated by the tabulation framework. See Details in analyze
.
character. Default row labels if they are not specified by the return value of afun
list/function/NULL. tabulation function(s) for creating content rows. Must accept x
or df
as first parameter. Must accept labelstr
as the second argument. Can optionally accept all optional arguments accepted by analysis functions. See analyze
.
format spec. Format for content rows
FormatSpec. Default format associated with the split being created.
boolean. Should observations with NA in the var
variable(s) be included when performing this analysis. Defaults to FALSE
string. Name associiated with this split (for pathing, etc)
list. Extra arguments to be passed to the tabulation function. Element position in thte 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 ttabulation function.
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.
character(1). Location the variable label should be displayed, Accepts hidden (default for non-analyze row splits), visible, topleft, and - for analyze splits only - default. For analyze calls, default
indicates that the variable
should be visible if and only if multiple variables are analyzed at the same level of nesting.
character(1). The variable, if any, which the content function should accept. Defaults to NA.
Used internally, not intended to be set by end users.
string. One of "default"
, "visible"
, "hidden"
. What should the display behavior be for the labels (ie label rows) of the children of this split. Defaults to "default"
which flags the label row as visible only if the child has 0 content rows.
character. Names to be given to the sub splits contained by a compound split (typically a AnalyzeMultiVars split object).
An AnalyzeVarSplit
object.
An AnalyzeMultiVars
split object.