Learn R Programming

ribiosUtils (version 1.5-6)

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
)

Arguments

Objects to be tested, or a list of them

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

Value

A logical value, TRUE if all objects are identical

Details

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

See Also

identical

Examples

Run this code
# NOT RUN {
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