View source: R/list_xtab_args.R
| flatten_args | R Documentation | 
This is a helper function that accepts the output of list_xtab_args() or list_xtab_3way_args()  containing
two lists— return and error. It will either 1) throw an error indicating that attention must be
paid to the error list, or 2) return a single list of arguments, which can then be passed to generate_tbls()
or ft_generate_tbls().
flatten_args(l)
| l | A list of lists as returned by  | 
A single tibble of crosstab arguments to be passed to generate_tbls(type = "crosstab_2way") or generate_tbls(type = "crosstab_3way").
list_xtab_args() and list_xtab_3way_args() for vectorized crosstab arguments generation and generate_tbls() for
multiple tables generation.
# Generate arguments list for crosstabs list_xtabs_args(df, var_of_interest, dependent_vars, rm) %>% flatten_args(l = .) # Generate arguments list for three-way crosstabs list_xtabs_args(df, control_var, independent_vars, dependent_vars) %>% flatten_args(l = .)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.