Learn R Programming

vvauditor (version 0.7.0)

test_all_equal: Test all equal

Description

Test whether all values in a vector are equal.

Usage

test_all_equal(x, na.rm = FALSE)

Value

Boolean result of the test

Arguments

x

Vector to test.

na.rm

default: FALSE. exclude NAs from the test.

See Also

Other tests: check_double_columns(), check_no_duplicates_in_group(), check_numeric_or_integer_type(), check_posixct_type(), duplicates_in_column()

Examples

Run this code
test_all_equal(c(5, 5, 5))

test_all_equal(c(5, 6, 3))

Run the code above in your browser using DataLab