setup_test_range: Setup Test Range

Description Usage Arguments

View source: R/test_setup.R

Description

Setup Test Range

Usage

1
2
setup_test_range(df_name, col_name, int, lower_inclu, upper_inclu, lower,
  upper, 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.

int

is a boolean value, if the values should be integers or not

lower_inclu

takes on the values TRUE, FALSE, or NULL. If there's an lower bound then it should be set to TRUE or FALSE. If the lower bound is inclusive, x >= lower, then lower_inclu = TRUE, else lower_inclu = FALSE.

upper_inclu

takes on the values TRUE, FALSE, or NULL. If there's an upper bound then it should be set to TRUE or FALSE. If the upper bound is inclusive, x <= upper, then upper_inclu = TRUE, else upper_inclu = FALSE.

lower

can take a numeric value or NULL. If there's no lower bound, then lower should be null.

upper

can take a numeric value or NULL. If there's no upper bound, then upper should be null.

ptr

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


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