Description Usage Arguments Value Examples
View source: R/padis_general_functions.R
Select variables from a data frame based on a prefix
1 | select_vars(data, ids, prefix)
|
data |
The data frame to look for the variables |
ids |
The ID-variable(s) that should also be kept |
prefix |
The prefix or pattern of the variables that are taken along |
It returns a data frame that contains only a subset of the previous data frame
1 2 | data <- mtcars
select_vars(data, "mpg", "^d.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.