Description Usage Arguments Value Examples
View source: R/fun_freqsum_table.r
Frequency summary report, a MJP team defined function
1 2 | fun_freqsum_table(dataset, path_report_output, x = 20, sort_by = "COUNT",
sort_descending = T)
|
dataset |
a dataset to run the summary |
path_report_output |
a path to store the summary output, have to be specified as a .csv file. |
x |
number of categories shown in the summary table, default = 20. |
sort_by |
sort summary table by "VARIABLE" = category lable or "COUNT" = freqency |
sort_descending |
show the result in acsending or descending order, default = TRUE, in descending order. |
A .csv file has the frequency summary table for each of the variable.
1 2 | fun_freqsum_table(my_df , "C:\\Users\\tlin\\Dropbox\\Richie\\RFiles\\summary.csv")
fun_freqsum_table(my_df , "C:\\Users\\tlin\\Dropbox\\Richie\\RFiles\\summary.csv", x = 50, sort_by = "VARIABLE", sort_descending = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.