printVar | R Documentation |
Function used to quickly print/list a serie of variable (similar names like vaccdate, vacctype, vaccbrand )
printVar(dataset, pattern, regex = FALSE)
dataset |
A data.frame containing the variable to be listed |
pattern |
A pattern for varname in the dataframe see |
regex |
Should the pattern be used as regex expression or use classical "joker" ? and * , the default |
A data frame of 10 rows with selected columns
data <- data.frame(Id = 1:4 ,
vaccage = c(34,45, 50,22 ),
symp = c("Y","Y","N","N"),
vaccboost=c("N","Y","N","Y"))
printVar(data,"symp")
printVar(data,"vac*")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.