Learn R Programming

arkhe (version 0.5.0)

check-numeric: Check Numeric Values

Description

Check Numeric Values

Usage

assert_count(x)

assert_numeric(x, expected, ...)

assert_trend(x, expected, ...)

assert_relation(x, y, expected, ...)

Value

Throws an error, if any, and returns x invisibly otherwise.

Arguments

x, y

A numeric object to be checked.

expected

A character string specifying the expected value (see details).

...

Extra parameters to be passed to internal methods.

Author

N. Frerebeau

Details

Possible values for expected:

assert_numeric()

"positive", "whole", "odd" or "even"

assert_trend()

"constant", "decreasing" or "increasing"

assert_relation()

"lower" or "greater"

See Also

Other validation methods: check-attribute, check-data, check-graph, check-matrix, check-type, validate()