Description Usage Arguments Value Examples
return variable names in a data frame or environment matching some condition
default method
character method
data frame method
find variables
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | find_vars(x, cond = function(x) TRUE)
## Default S3 method:
find_vars(x, cond = function(x) TRUE)
## S3 method for class 'character'
find_vars(x, cond = function(x) TRUE)
## S3 method for class 'data.frame'
find_vars(x,
cond = function(x) TRUE)
## S3 method for class 'environment'
find_vars(x,
cond = function(x) TRUE)
|
x |
a data frame,data frame name in the global workspace or an environment |
cond |
a function to apply to each column of the data frame Only those matching a returned |
a character vector of variable names.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.