View source: R/basefunctions.R
FindVars | R Documentation |
Function ColSeeker extends this by adding class-checks.
FindVars
looks up colnames (by default for data-frame rawdata)
based on parts of names, using regular expressions. Be warned that
special characters as e.g. [
(
need to be escaped or replaced by .
Exclusion rules may be specified as well.
New function ColSeeker()
extends this by adding class-checks.
FindVars(
varnames,
allnames = colnames(rawdata),
exact = FALSE,
exclude = NA,
casesensitive = TRUE,
fixed = FALSE,
return_symbols = FALSE
)
varnames |
Vector of pattern to look for. |
allnames |
Vector of values to detect pattern in; by default: colnames(rawdata). |
exact |
Partial matching or exact only (adding ^ and $)? |
exclude |
Vector of pattern to exclude from found names. |
casesensitive |
Logical if case is respected in matching (default FALSE: a<>A) |
fixed |
Logical, match as is, argument is passed to |
return_symbols |
Should names be reported as symbols additionally? (Default FALSE) |
A list with index, names, backticked names, and symbols
FindVars(varnames = c("^c", "g"), allnames = colnames(mtcars))
FindVars(varnames = c("^c", "g"), allnames = colnames(mtcars), exclude = "r")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.