39 Exploratory Data Analysis

# load to get txhousing data
library(ggplot2)

Data Report

Feature Engineering

Missing Data

# install.packages("DataExplorer")
library(DataExplorer)

# creat a html file that contain all reports
create_report(txhousing)

introduce() # see basic info


dummify() # create binary columns from discrete variables
split_columns() # split data into discrete and continuous parts



plot_correlation() # heatmap for discrete var
plot_intro() 

plot_missing() # plot missing value
profile_missing() # profile missing values


plot_prcomp() # plot PCA

Error Identification

# install.packages("dataReporter")
library(dataReporter)
makeDataReport() # detailed report like DataExplorer

Summary statistics

library(skimr)
skim() # give only few quick summary stat, not as detailed as the other two packages

Not so code-y process

Quick and dirty way to look at your data

# install.packages("rpivotTable")
library(rpivotTable)
# give set up just like Excel table 
data %>% 
    rpivotTable::rpivotTable()

Code generation and wrangling

Shiny-app based Tableu style

# install.packages("esquisse")
library(esquisse)
esquisse::esquisser()

Customized your daily/automatic report

# install.packages("chronicle")
library(chronicle)
# install.packages("dlookr")
# install.packages("descriptr")