sc_cols_unique: Checks that the combination of the specified columns is...

Description Usage Arguments Value Examples

View source: R/convenience.R

Description

Checks that the combination of the specified columns is unique

Usage

1
sc_cols_unique(object, cols = names(object), ...)

Arguments

object

table with a columns specified by cols

cols

vector of characters which combination is checked to be unique

...

further parameters that are passed to add_sanity_check.

Value

see return object of add_sanity_check. Note that if a combination appears 3 times, then n_fail will increased by 3.

Examples

1
2
3
4
5
6
7
8
9
dummy_call <- function(x) {
  sc_cols_unique(
    object = x,
    cols = c("Species", "Sepal.Length",
             "Sepal.Width", "Petal.Length"))
}
dummy_call(x = iris)
get_sanity_checks()
get_sanity_checks()[["example"]]

sanityTracker documentation built on April 22, 2020, 5:09 p.m.