data_report: Generate a simple data quality report

View source: R/data_report.R

data_reportR Documentation

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)

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.

Value

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

Author(s)

Chun-Sheng Liang <chun-shengliang@qq.com>

References

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

Examples

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

dataprep documentation built on Oct. 1, 2026, 5:07 p.m.