var_types: Attach the variable type information with the dataset

Description Usage Arguments

View source: R/var_types.R


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.

ezsummary documentation built on May 29, 2017, 1:46 p.m.