Learn R Programming

DataExplorer (version 0.4.0)

PlotMissing: Plot missing values

Description

This function returns and plots frequency of missing values for each feature.

Usage

PlotMissing(data)

Arguments

data

input data to be profiled, in either data.frame or data.table format.

Value

missing value information, such as frequency, percentage and suggested action.

Details

The returned object is suppressed by invisible to prevent unwanted text in GenerateReport.

Examples

Run this code
# NOT RUN {
# load packages
library(data.table)

# manipulate data
data <- data.table(iris)
for (j in 1:4) set(data, i=sample(150, j * 30), j, value = NA_integer_)

# plot and assign missing value information
plot_data <- PlotMissing(data)
plot_data
# }

Run the code above in your browser using DataLab