Description Usage Arguments Value Note Examples

This function will return `TRUE`

whenever `base::all.equal()`

would return `TRUE`

, however it will also return `TRUE`

in some other cases:

If

`a`

is given and`b`

is not,`TRUE`

will be returned if all of the elements of`a`

are the same.If

`a`

is a scalar and`b`

is a vector or array,`TRUE`

will be returned if every element in`b`

is equal to`a`

.If

`a`

is a vector or array and`b`

is a scalar,`TRUE`

will be returned if every element in`a`

is equal to`b`

.

This function ignores names and attributes (except for `dim`

).

When this function does not return `TRUE`

, it returns `FALSE`

(unless it
errors). This is unlike `base::all.equal()`

.

1 |

`a` |
A vector, array or list. |

`b` |
Either |

`TRUE`

if "equality of all" is satisfied (as detailed in
'Description' above) and `FALSE`

otherwise.

This behaviour is totally different from

`base::all.equal()`

.There's also

`dplyr::all_equal()`

, which is different again. To avoid confusion, always use the full`filesstrings::all_equal()`

and never`library(filesstrings)`

followed by just`all_equal()`

.

1 2 3 4 5 6 7 8 9 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.