Learn R Programming

SmartEDA (version 0.3.10)

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.

See Also

create_report

Examples

Run this code
## Creating HTML report
if (FALSE) {
 library (ggthemes)
 # Create report where target variable is categorical
 ExpReport(mtcars,Target="gear",label="car",theme=theme_economist(),op_file="Samp1.html",Rc=3)
 # Create report where target variable is continuous
 ExpReport(mtcars,Target="wt",label="car",theme="Default",op_file="Samp2.html")
 # Create report where no target variable defined
 ExpReport(mtcars,Target=NULL,label="car",theme=theme_foundation(),op_file="Samp3.html")
}

Run the code above in your browser using DataLab