test_column_max: Test maximum value of a column

Description Usage Arguments Details Value Examples

View source: R/col-tests.R

Description

Performs a test that no value in a specific column is larger than an expected value.

Usage

1
test_column_max(df, col, max_expected)

Arguments

df

A dataframe

col

The unquoted column name of the column you want to test

max_expected

The expected maximum value

Details

Note that this test only verifies that all values in the column are less than or equal to the specified value. It does not test that the maximum value of the column is equal to a certain value.

Value

The dataframe passed to the function.

Examples

1
2
# Basic usage
test_column_max(mtcars, disp, 500)

joshmuncke/easytest documentation built on Aug. 14, 2019, 3:07 p.m.