Last chance! 50% off unlimited learning
Sale ends in
This function permits to reproduce the output of the SAS proc freq
proc_freq(variable, digits = 4)
vector on which we want to apply the function.
integer that specifies the number of decimals we want to keep in the rounded figures.
a R data frame of dimension [number of categories x 5]. The five columns display the following information:
Category: different categories of the original categorical variable
Frequency
Percentage
Cumulative.Frequency
Cumulative.Percentage
Link to the author's github package repository: https://github.com/Redcart/helda
# NOT RUN {
data <- iris
str(data)
result <- proc_freq(data$Species)
result
# }
Run the code above in your browser using DataLab