setup_test_values: Setup Test Values

Description Usage Arguments Examples

View source: R/test_setup.R

Description

Setup Test Values

Usage

1
setup_test_values(df_name, col_name, values, ptr = NULL)

Arguments

df_name

is a string and represents the name of the dataframe.

col_name

is a string and represents the name of the column to be tested.

values

is a list of values that expected in the column to be 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_values(df_name = "df", col_name = "y", values = c("X", "Y"))

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