Learn R Programming

rtemis (version 1.4.3)

data_profile: 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)

Value

DataProfile object.

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.

Author

EDG

Details

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

Examples

Run this code
p <- data_profile(iris)
p@columns
p@level_counts

Run the code above in your browser using DataLab