all_identical: all_identical

Description Usage Arguments Details

Description

Are all elements of a vector identical? Test for equality is done with `==`.

Usage

1
2
3
all_identical(v, allNA = FALSE, na.rm = FALSE)

not_all_identical(v, ...)

Arguments

allNA

should vectors where all(is.na(v))) return TRUE. If set to TRUE, na.rm is ignored.

na.rm

ignore NA elements for the comparison. ignored if allNA is TRUE

Details

Vectors of length 1 and 0 (potentially after removing NA elements) return TRUE.


t-kalinowski/notr documentation built on May 31, 2019, 12:51 a.m.