hugo_summarise_data: Create report with summary of variables in dataset.

Description Usage Arguments Details Value Examples

Description

Creates the report 'html' or 'pdf' in the directory chosen at the beginning of the current Hugo Investigation in the subfolder 'gallery' in .rda file and a summary in .md file. This reports summarizes the contents of a dataset and flags potential problems. To generate report is used function dataMaid::makeDataReport.

Usage

1
hugo_summarise_data(data, overwrite_params = TRUE)

Arguments

data

R dataset which you wish to summary. This dataset should be of class data.frame, tibble or matrix.

overwrite_params

logical. If TRUE (the default) parameters used to generate report will be saved.

Details

While using hugo_summarise_data user is prompted and asked to choose additional parameters - report format , decide to overwrite existing report, decide to automatically open report , decide whether numeric and integer variables with less than 5 unique values are treated as factor variables and type max decimals .

If hugo remembers previuos answer, user will be prompted and asked if he wishes to use previous parameters or choose new ones.

Value

The function does not return anything. Its side effect (the production of a data report) is the reason for running the function.

Examples

1
2
3
4
5
6
7
## Not run: 
# create report for iris dataset
hugo_summarise_data(data = iris)
# create report for cars dataset with no overwrite parameters
hugo_summarise_data(data = cars, overwrite_params = FALSE)

## End(Not run)

pbiecek/hugo documentation built on May 12, 2019, 6:24 p.m.