Description Usage Arguments Value Examples
findVars searching the variable names of a data.frame for matches to a provided character string, and then returns the matching variable name(s).
1 |
data |
data.frame to search |
str |
character string to search for in variable names |
ignore.case |
TRUE/FALSE: Should character case be ignored when searching |
fuzzy |
If TRUE, a fuzzy search method will be used |
A vector of matching variable names.
1 2 | #fakeData <- data.frame(sex = sample(c('male', 'female'), 10, replace=T), smokng = sample(c('yes', 'no'), 10, replace=T))
#findVars(data = fakeData, str = 'smoking')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.