View source: R/argument_conventions.R
lyt_args | R Documentation |
Layouting Function Arg Conventions
lyt_args(
lyt,
var,
vars,
label,
labels_var,
varlabels,
varnames,
split_format,
split_na_str,
nested,
format,
cfun,
cformat,
cna_str,
split_fun,
split_name,
split_label,
afun,
inclNAs,
valorder,
ref_group,
compfun,
label_fstr,
child_labels,
extra_args,
name,
cuts,
cutlabels,
cutfun,
cutlabelfun,
cumulative,
indent_mod,
show_labels,
label_pos,
var_labels,
cvar,
table_names,
topleft,
align,
page_by,
page_prefix,
format_na_str,
section_div,
na_str
)
lyt |
layout object pre-data used for tabulation |
var |
string, variable name |
vars |
character vector. Multiple variable names. |
label |
character(1). A label (not to be confused with the name) for the object/structure. |
labels_var |
string, name of variable containing labels to be displayed
for the values of |
varlabels |
character vector. Labels for |
varnames |
character vector. Names for |
split_format |
|
split_na_str |
character. NA string vector for use with |
nested |
boolean. Should this layout instruction be applied within the
existing layout structure if possible ( |
format |
|
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_fun |
function/NULL. custom splitting function See
|
split_name |
string. Name associated with this split (for pathing, etc) |
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). |
afun |
function. Analysis function, must take |
inclNAs |
boolean. Should observations with NA in the |
valorder |
character vector. Order that the split children should appear in resulting table. |
ref_group |
character. Value of |
compfun |
function/string. The comparison function which accepts the analysis function outputs for two different partitions and returns a single value. Defaults to subtraction. If a string, taken as the name of a function. |
label_fstr |
string. An |
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. |
name |
character(1). Name of the split/table/row being created. Defaults to same as the corresponding label, but is not required to be. |
cuts |
numeric. Cuts to use |
cutlabels |
character (or NULL). Labels for the cuts |
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 |
cumulative |
logical. Should the cuts be treated as cumulative. Defaults
to |
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. |
show_labels |
character(1). Should the variable labels for corresponding
to the variable(s) in |
label_pos |
character(1). Location the variable label should be
displayed, Accepts |
var_labels |
character. Variable labels for 1 or more variables |
cvar |
character(1). The variable, if any, which the content function should accept. Defaults to NA. |
table_names |
character. Names for the tables representing each atomic
analysis. Defaults to |
topleft |
character. Override values for the "top left" material to be displayed during printing. |
align |
character(1) or |
page_by |
logical(1). Should pagination be forced between different
children resulting form this split. An error will rise if the selected split
does not contain at least one value that is not |
page_prefix |
character(1). Prefix, to be appended with the split value, when forcing pagination between the children of this split/table |
format_na_str |
character(1). String which should be displayed when formatted if this cell's value(s) are all NA. |
section_div |
character(1). String which should be repeated as a section
divider after each group defined by this split instruction, or
|
na_str |
character(1). String that should be displayed when the value of |
NULL (this is an argument template dummy function)
Other conventions:
compat_args()
,
constr_args()
,
gen_args()
,
sf_args()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.