Learn R Programming

dataprep (version 0.1.8)

data_report: Generate a simple data quality report

Description

Computes a data quality summary and returns it invisibly as a list. When verbose = TRUE, the summary is also printed to the console.

Usage

data_report(data, cols = NULL, date_col = NULL, verbose = FALSE)

Value

Invisibly returns a list containing data dimensions, variable types, missing value diagnosis, and descriptive statistics.

Arguments

data

A data frame.

cols

Optional column indices or names for the numeric columns to include in the report. If NULL, all numeric columns are used.

date_col

Reserved for future use; currently ignored (passed through to na_diagnose).

verbose

Logical; if TRUE, prints progress and timing messages.

Author

Chun-Sheng Liang <[email protected]>

References

1. Example data is from https://smear.avaa.csc.fi/download. It includes particle number concentrations in SMEAR I Varrio forest.

Examples

Run this code
data_report(data[1:200, c(1, 4, 17:19)], cols = 3:5, date_col = 1)

Run the code above in your browser using DataLab