Description Usage Arguments Value Examples
############################################################################ Function to keep only certain variables
1 | keep_required_columns(variables, the_data)
|
variables |
list of variables |
the_data |
data to be sub setting |
subset
1 2 3 | the_data <- data.frame("Age" = c(21, 15), "sex" = c("m", "f"))
variable <- "Age"
keep_required_columns(variable, the_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.