Learn R Programming

arkhe (version 1.4.0)

check-data: Check Data

Description

  • assert_missing() and assert_infinite() check if an object contains any missing (NA, NaN) or infinite (Inf) value.

  • assert_unique() checks if an object contains duplicated elements.

Usage

assert_missing(x)

assert_infinite(x)

assert_unique(x)

Value

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

Arguments

x

An object to be checked.

Author

N. Frerebeau

See Also

Other validation methods: check-attribute, check-matrix, check-numeric-comparison, check-numeric-trend, check-numeric, check-type, needs(), validate()