compare_three.RdConvenience function comparing three elements using a desired comparator function.
compare_three( x, y, z, compare_fun = "identical", result = c("single", "itemized") )
| x, y, z | Vectors of equal length to compare |
|---|---|
| compare_fun | A function used to compare defaults to
|
| result | For single it will return logical scalar |
A logical vector of length equal to a, b, c
The results of the comparator function are tested with
compare_three(1:10, 1:10, 1:10)#> [1] TRUE#> [1] TRUE FALSE