is_constant: Check if an object contains more than one unique value

Description Usage Arguments Value Author(s)

View source: R/RcppWrappers.r

Description

Check if an object contains more than one unique value

Usage

1
is_constant(x, na.rm = FALSE)

Arguments

x

Vector or matrix.

na.rm

Whether to ignore missing values.

Value

Logical scalar that is TRUE if x contains more than one unique value and FALSE if not.

A logical scalar that is TRUE if x contains more than one unique value and FALSE otherwise. In case x contains missing values NA is returned if na_rm = FALSE. If there are no non-missing values NA is always returned.

Author(s)

Christofer Bäcklin


emil documentation built on Aug. 1, 2018, 1:03 a.m.