listVar | R Documentation |
listVar
listVar(dataset, pattern, regex = FALSE, strict = FALSE)
dataset |
A dataset to explore |
pattern |
Pattern representing varname |
regex |
Should the pattern be used as regex expression or use classical "joker" ? and * |
strict |
If FALSE, the default, look for any column name containing the pattern |
list of the variables matching the pattern
data <- data.frame(Id = 1:4 ,
vaccage = c(34,45, 50,22 ),
symp = c("Y","Y","N","N"),
vaccboost=c("N","Y","N","Y"))
listVar(data,"symp")
listVar(data,"vac*")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.