allAreEqual: are all elements in x the same?

View source: R/logical.R

allAreEqualR Documentation

are all elements in x the same?

Description

are all elements in x the same?

Usage

allAreEqual(x, method = 1)

Arguments

x

vector of elements to be compared

method

Select one of two methods. 1: check if the length of unique elements is equal to one, 2: check if all elements are equal to the first element.

Value

TRUE if all elements in x are equal to each other, otherwise FALSE


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.