Returns a single dq_result for the whole table. A row is
considered a duplicate when every column value is identical to another row.
Arguments
- df
A data frame with all columns as character vectors (as returned by
read_dataset).- config
Named list. Merged configuration as returned by
load_config. Currently unused; present for API consistency.
Value
A list containing one dq_result.
Status is "WARN" if any duplicate rows exist; "PASS"
otherwise.
Examples
cfg_dir <- system.file("demonstrations/config", package = "dqcheckr")
cfg <- load_config("starwars_csv", config_dir = cfg_dir)
path <- system.file("demonstrations/data/starwars.csv", package = "dqcheckr")
df <- read_dataset(path, cfg)
check_duplicate_rows(df, cfg)
#> [[1]]
#> [[1]]$check_id
#> [1] "QC-03"
#>
#> [[1]]$check_name
#> [1] "Duplicate rows"
#>
#> [[1]]$column
#> [1] NA
#>
#> [[1]]$status
#> [1] "PASS"
#>
#> [[1]]$observed
#> [1] "0 fully-duplicate row(s)"
#>
#> [[1]]$threshold
#> [1] NA
#>
#> [[1]]$message
#> [1] "No fully-duplicate rows found."
#>
#>