Description Usage Arguments Details Value Examples
This function builds an excel report based on the result of a quality check. It renders an excel report with predefined styles using the openxlsx package.
1 2 3 4 5 6 7 8 9 10 11 |
data |
a data.frame |
quality_res |
an object with class qualityResult obtained with |
output_file |
output file name |
numeric_cutoff |
the minimum number of distinct values required for a numeric vector not to be coerced to a fator. -1 is the default, meaning no minimum required. |
na_type |
charcater vector with valus that should be considered NA. Default to NULL, no values other than regular NA are treated as NA. |
max_length |
the maximum number of rows in the frequency tables |
global_only |
logical, whether to return only the global summary |
na_threshold |
numeric vector of length 2 defining the range of colors in the output for the percentage of missing values. Default to c(40, 80). |
verbose |
logical, should information messages be printed in the console? default to TRUE. |
If quality_res is provided, data, numeric_cutoff, na_type and max_length are ignored.
invisible, a list with a global summary, and if available, information on numeric, categorical and date variables
1 2 3 4 5 | data(mtcars)
audit_report_excel(mtcars, output_file = "mtcars.xlsx")
data(iris)
audit_report_excel(mtcars, output_file = "iris.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.