Learn R Programming

ribiosUtils (version 1.7.7)

midentical: Multiple identical

Description

Testing whether multiple objects are identical

Usage

midentical(
  ...,
  num.eq = TRUE,
  single.NA = TRUE,
  attrib.as.set = TRUE,
  ignore.bytecode = TRUE,
  ignore.environment = FALSE,
  ignore.srcref = TRUE,
  extptr.as.ref = FALSE
)

Value

A logical value, TRUE if all objects are identical

Arguments

...

Objects to be tested, or a list of them

num.eq, single.NA, attrib.as.set, ignore.bytecode,

See identical

ignore.environment, ignore.srcref

See identical

extptr.as.ref

See identical, new parameter since R-4.2

Author

Jitao David Zhang <jitao_david.zhang@roche.com>

Details

midentical extends identical to test multiple objects instead of only two.

See Also

identical

Examples

Run this code

set1 <- "HSV"
set2 <- set3 <- set4 <- c("HSV", "FCB")

midentical(set1, set2)
midentical(list(set1, set2))

midentical(set2, set3, set4)
midentical(list(set2, set3, set4))

## other options passed to identical
midentical(0, -0, +0, num.eq=FALSE)
midentical(0, -0, +0, num.eq=TRUE)

Run the code above in your browser using DataLab