sc_cols_bounded_above: Checks that all elements from the given columns are below a...

Description Usage Arguments Value

View source: R/convenience.R

Description

Checks that all elements from the given columns are below a certain number

Usage

1
2
3
4
5
6
7
sc_cols_bounded_above(
  object,
  cols,
  upper_bound,
  include_upper_bound = TRUE,
  ...
)

Arguments

object

table with a columns specified by cols

cols

vector of characters of columns that are checked against the specified range

upper_bound

elements of the specified columns must be below this bound

include_upper_bound

if TRUE (default), elements are allowed to be equal to the upper_bound

...

further parameters that are passed to add_sanity_check.

Value

list of logical vectors where TRUE indicates where the check failed. Every list entry represents one of the columns specified in cols. This might be helpful if one wants to apply a counter-measure


sanityTracker documentation built on April 22, 2020, 5:09 p.m.