powered by
Retrieves the frequency and percentage for input
freq(data, input = NA, plot = TRUE, na.rm = FALSE, path_out)
vector with the values scaled into the 0 to 1 range
input data containing the variable to describe
string input variable (if empty, it runs for all numeric variable), it can take a single character value or a character vector.
flag indicating if the plot is desired, TRUE by default
flag indicating if NA values must be included in the analysis, FALSE by default
path directory, if it has a value the plot is saved
freq(data=heart_disease$thal) freq(data=heart_disease, input = c('thal','chest_pain'))
Run the code above in your browser using DataLab