Learn R Programming

arkhe (version 1.10.0)

predicate-data: Utility Predicates

Description

  • has_missing() and has_infinite() check if an object contains missing or infinite values.

  • has_duplicates() checks if an object has duplicated elements.

Usage

has_missing(x)

has_infinite(x)

has_duplicates(x)

is_unique(x, tolerance = sqrt(.Machine$double.eps), na.rm = FALSE)

Value

A logical scalar.

Arguments

x

A vector to be tested.

tolerance

A numeric scalar giving the tolerance to check within (for numeric vector).

na.rm

A logical scalar: should missing values (including NaN) be omitted?

See Also

Other predicates: is_scalar, predicate-attributes, predicate-matrix, predicate-names, predicate-numeric, predicate-trend, predicate-type