AllIdentical {DescTools} | R Documentation |

## Test Multiple Objects for Exact Equality

### Description

The function `identical()`

is the safe and reliable way to test two objects for being exactly equal. But it is restricted to the comparison of two objects. `AllIdentical()`

allows the input of multiple objects and returns `TRUE`

in the case that all of them are exactly equal, `FALSE`

in every other case.

### Usage

```
AllIdentical(...)
```

### Arguments

### Details

The function checks the first object against all others, so if the first object is identical to the second and to the third, then also the second and the third are identical.
(If A=B and A=C then is B=C)

### Author(s)

Andri Signorell <andri@signorell.net>

### See Also

`identical()`

### Examples

```
A <- LETTERS[1:5]
B <- LETTERS[1:5]
C <- LETTERS[1:5]
D <- LETTERS[1:5]
E <- factor(LETTERS[1:5])
# all ok
AllIdentical(A, B, C, D)
# at least one odd man
AllIdentical(A, B, C, D, E)
```

[Package

*DescTools* version 0.99.51

Index]