unique_id {vvauditor}R Documentation

unique id

Description

Check if parsed variable is a unique identifier. This function was adapted from: Source: https://edwinth.github.io/blog/unique_id/

Usage

unique_id(x, ...)

Arguments

x

vector or dataframe.

...

optional variables, e.g. name of column or a vector of names.

Value

Boolean whether variable is a unique identifier.

Examples

unique_id(iris, Species)

mtcars$name <- rownames(mtcars)
unique_id(mtcars, name)


[Package vvauditor version 0.6.0 Index]