View source: R/generate_arguments.R
generate_topline_args | R Documentation |
This function is helper for generate_tbls()
. It automatically generates a list of arguments to be
passed on to generate_tbls()
for a given set of arguments. This may be useful when the number of
variables in a data frame is large, and there is a need to generate varying arguments efficiently.
generate_topline_args(df, var_of_interest = NULL, rm = NULL)
df |
A data frame or tibble. |
var_of_interest |
A single string of the variable of interest. Defaults to |
rm |
A character vector of variables to be removed from consideration. Defaults to |
A list of arguments. If n tables were to be generated, this is a tibble
with dimensions (n, 2).
generate_tbls()
for an example of a list of arguments.
# Generate list of arguments generate_topline_args(df, "var_of_interest") # Specified removal variables rm <- c("col19", "col20") generate_topline_args(df, "var_of_interest", rm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.