test_all_equal: Test all equal

View source: R/test_all_equal.R

test_all_equalR Documentation

Test all equal

Description

Test whether all values in a vector are equal.

Usage

test_all_equal(x, na.rm = FALSE)

Arguments

x

Vector to test.

na.rm

default: FALSE. exclude NAs from the test.

Value

Boolean result of 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

test_all_equal(c(5, 5, 5))

test_all_equal(c(5, 6, 3))


vvauditor documentation built on May 29, 2024, 12:20 p.m.