SmartEDA includes multiple custom functions to perform initial exploratory analysis on any input data describing the structure and the relationships present in the data. The generated output can be obtained in both summary and graphical form. The graphical form or charts can also be exported as reports.
smartEDA(data, Template = NULL, Target = NULL, label = NULL,
theme = "Default", op_file = NULL, op_dir = getwd(), sc = NULL,
sn = NULL, Rc = NULL)
a data frame
R markdown template (.rmd file)
dependent variable. If there is no defined target variable then keep as it is NULL.
target variable descriptions, not a mandatory field
customized ggplot theme (default SmartEDA theme) (for Some extra themes use Package: ggthemes)
output file name (.html)
output path
sample number of plots for categorical variable. User can decide how many number of plots to depict in html report.
sample number of plots for numerical variable. User can decide how many number of plots to depict in html report.
reference category of target variable. If Target is categorical then Pclass value is mandatory and which should not be NULL
HTML Rmarkdown output file in .html format
SmartEDA has four major functionalities 1. Descriptive statistics
Numerical variable summary :
ExpNumStat
- Summary statistics for numerical variables
ExpNumStat
Categorical variable summary :
ExpCatStat
- Function provides summary statistics for all character or categorical columns in the dataframe
ExpCatStat
ExpCTable
- Function to create frequency and custom tables
ExpCTable
2. Data visualization
Numerical variable plot :
ExpNumViz
- Distributions of numeric variables
ExpNumViz
Categorical variable plot :
ExpCatViz
- Distributions of categorical variables
ExpCatViz
Normality testing plot:
ExpOutQQ
- Quantile Quantile Plots
ExpOutQQ
ExpParcoord
- Parallel Co ordinate plots
ExpParcoord
3. Custom tables
Customized summary statistics :
ExpCustomStat
- Customized summary statistics
ExpCustomStat
4. EDA report
Function to create HTML EDA report :
ExpReport
- Function to create HTML EDA report
ExpReport
# NOT RUN {
# Genearate complete EDA report
smartEDA(iris, op_file="eda_report.html", op_dir = tempdir(), sc = NULL, sn = 2)
# }
Run the code above in your browser using DataLab