check_for_duplicates: A validation helper which throws an error if a vector...

Description Usage Arguments Value

View source: R/naming_functions.R

Description

A validation helper which throws an error if a vector contains duplicates

Usage

1
check_for_duplicates(x, x.name = "x")

Arguments

x

vector to be checked for duplicates

x.name

name for x (useful since this function is called from a wrapper, check_schema_for_duplicates, which may want to let know which schema has duplicates in it)

Value

Throws an error if the tested vector contains duplicates


antonmalko/ettools documentation built on May 28, 2019, 3:35 p.m.