Learn R Programming

DataExplorer (version 0.2.4)

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

  • a data.table object containing frequency, percentage and group of all missing values.

Examples

Run this code
# 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 store missing values
plot_data <- PlotMissing(data)
plot_data

Run the code above in your browser using DataLab