View source: R/create_dataset.R
To be transferred into a separate package for Alan.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
Dataframe with X and Y variables. |
varsX |
Vector of variables to use as predictors. |
varY |
Variable name to use as the outcome. |
config_code |
R code to create varsX and varY, which define the variables to use. |
rename_vars |
named vector, where names are the original names and values are the new names. |
remove_vars |
vector of strings for variables to remove from varsX |
subset |
Code to further subset the data. |
ylevel |
Target level of y if y is a factor variable. |
primary_key |
Id variable, if any. |
verbose |
If TRUE display extra output. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.