identical: A version of identical() that accepts arbitrarily many...

Description Usage Arguments Value Examples

View source: R/identical.R

Description

A version of identical() that accepts arbitrarily many inputs. (It turns out that Reduce(identical, ...) doesn't do what you might like.)

Usage

1

Arguments

...

(list) The things to test for identicality.

Value

1
 (boolean) Whether they are all identical.

Examples

1
2
3
4
5
identical(1:3*1, c(1, 2, 3), seq(3, 9, 3) / 3)           # TRUE
identical(1:3, c(1, 2, 3), seq(1, 3))                    # FALSE
identical(c(1, 2, 3), c(2, 4, 6) / 2, c(3, 6, 9) / 3)    # TRUE 
identical(1:3, c(1, 2, 3), seq_len(3))                   # FALSE 
identical(1:3, seq_len(3), seq_along(1:3))               # TRUE 

VanAndelInstitute/ExpDesign2021 documentation built on Dec. 18, 2021, 6:15 p.m.