var_types: Attach the variable type information with the dataset

Description Usage Arguments


In order to analyze variables in the most appropriate way using this ezsummary package, you'd better let the computer know what types of data (quantitative or categorical) you are asking it to compute. This function will attach a list of types you entered with the datasets so functions down the stream line can read these information and analyze based on that. The information is stored in the attributes of the dataset


var_types(tbl, types)



A data.frame


Character vector of length equal to the number of variables in the dataset. Use "q" and "c" to denote quantitative and categorical variables.

Search within the ezsummary package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.