are_identical: Identical extensions

View source: R/identical.R

are_identicalR Documentation

Identical extensions

Description

Extensions for the use of base::identical()

Usage

are_identical(..., params = NULL)

Arguments

...

Vectors of values to compare, element-wise of equal length

params

Additional params (as a named list of arguments for base::identical)

Value

A logical vector of TRUE/FALSE of equal length of each ... vector

Examples

x <- y <- z <- 1:5
y[2] <- 3L
z[5] <- NA_integer_

identical(x, y)        # compare entire vector
are_identical(x, y)    # element-wise
are_identical(x, y, z) # 3 or more vectors

jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.