setup_test_unique: Setup Test Unique

Description Usage Arguments Examples

View source: R/test_setup.R

Description

Setup Test Unique

Usage

1
setup_test_unique(df_name, col_name, ptr = NULL)

Arguments

df_name

is a string and represents the name of the dataframe.

col_name

is a string or vector of column names. If more than one column is included they will be concatenated and tested.

ptr

a string or vector of strings correspond to the unique identifier or unique identifiers of the dataset

Examples

1
2
df <- data.frame(x = 1:10, y = c(rep("X", 4), rep("Y", 4), rep("Z", 2)))
setup <- setup_test_unique(df_name = "df", col_name = "x")

holmesjoli/validR documentation built on Dec. 1, 2019, 12:38 p.m.