SmartEDA (version 0.3.2)

ExpReport: Function to create HTML EDA report

Description

Create a exploratory data analysis report in HTML format

Usage

ExpReport(data,Template=NULL,Target=NULL,label=NULL,theme="Default",
op_file=NULL,op_dir=getwd(),sc=NULL,sn=NULL,Rc=NULL)

Arguments

data

a data frame

Template

R markdown template (.rmd file)

Target

dependent variable. If there is no defined target variable then keep as it is NULL.

label

target variable descriptions, not a mandatory field

theme

customized ggplot theme (default SmartEDA theme) (for Some extra themes use Package: ggthemes)

op_file

output file name (.html)

op_dir

output path

sc

sample number of plots for categorical variable. User can decide how many number of plots to depict in html report.

sn

sample number of plots for numerical variable. User can decide how many number of plots to depict in html report.

Rc

reference category of target variable. If Target is categorical then Pclass value is mandatory and which should not be NULL

Details

The "ExpReport" function will generate a HTML report for any R data frames. If the markdown template is ready, we can use that template to generate the HTML report else It will generate three different types of HTML report based on the Target field

IF Target = NULL, means there is no defined dependent varaible then it will genreate general EDA report at overall level

IF Target = continuous, then it will genreate EDA report including univariate and multivarite summary statistics with correlation.

IF Target = categorical, then it will genreate EDA report including univariate and multivarite summary statistics with chi-square, Information values.

See Also

create_report

Examples

Run this code
# NOT RUN {
## Creating HTML report
# library (ggthemes)
# ExpReport(mtcars,Target="gear",label="car",theme=theme_economist(),op_file="Samp1.html",Rc=3)
# ExpReport(mtcars,Target="wt",label="car",theme="Default",op_file="Samp2.html")
# ExpReport(mtcars,Target=NULL,label="car",theme=theme_foundation(),op_file="Samp3.html")
# }

Run the code above in your browser using DataLab