Description Usage Arguments Value Author(s)
Check if an object contains more than one unique value
1 | is_constant(x, na.rm = FALSE)
|
x |
Vector or matrix. |
na.rm |
Whether to ignore missing values. |
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.
Christofer Bäcklin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.