Learn R Programming

ribiosUtils (version 1.7.7)

allIdentical: Testing whether several objects are all identical with each other

Description

Given several objects, the function tests whether all of them are identical.

Usage

allIdentical(...)

Value

Logical, whether all objects are the same

Arguments

...

Objects to be tested. Can be given as a list, or simplying appending names separated by commas, see example.

Author

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

See Also

Examples

Run this code

test1 <- test2 <- test3 <- LETTERS[1:3]
allIdentical(test1, test2, test3)
allIdentical(list(test1, test2, test3))

num1 <- num2 <- num3 <- num4 <- sqrt(3)
allIdentical(num1, num2, num3, num4)

Run the code above in your browser using DataLab