data_profile: Profile a dataset

View source: R/045_DataProfile.R

data_profileR Documentation

Profile a dataset

Description

Measures the facts validate_config checks a config against: dimensions, column types, distinct and missing counts per column, level counts for low-cardinality categorical columns, and the number of complete cases.

Usage

data_profile(x, n_duplicates = TRUE, fingerprint = FALSE)

Arguments

x

tabular data: The dataset.

n_duplicates

Logical: If TRUE, count rows that repeat an earlier row. The one whole-table operation here; FALSE leaves the field NULL.

fingerprint

Logical: If TRUE, record a data_fingerprint of x. Hashes the whole dataset, so it is off by default.

Details

One pass per column and no copy of the data, so profiling is cheap enough to do per validation.

Value

DataProfile object.

Author(s)

EDG

Examples

p <- data_profile(iris)
p@columns
p@level_counts

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.