Skip to contents
  • 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)

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?

Value

A logical scalar.