proc_freq | R Documentation |
This function permits to reproduce the output of the SAS proc freq
proc_freq(variable, digits = 4)
variable |
vector on which we want to apply the function. |
digits |
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
Simon CORDE
Link to the author's github package repository: https://github.com/Redcart/helda
data <- iris str(data) result <- proc_freq(data$Species) result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.