keep_required_columns | R Documentation |
############################################################################ Function to keep only certain variables
keep_required_columns(variables, the_data)
variables |
list of variables |
the_data |
data to be sub setting |
subset
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.