getvar.character: Get variables with a specific prefix (character method)
Description
Get variables with a specific prefix (character method)
Usage
# S3 method for character
getvar(x, prefix, sep = "_")
Value
Subset of x that matches the prefix
Arguments
- x
Character vector
- prefix
Prefix to match
- sep
Separator, default "_"