vec_proxy_equal {vctrs} | R Documentation |
Returns a proxy object (i.e. an atomic vector or data frame of atomic
vectors). For vctrs, this determines the behaviour of ==
and
!=
(via vec_equal()
); unique()
, duplicated()
(via
vec_unique()
and vec_duplicate_detect()
); is.na()
and anyNA()
(via vec_equal_na()
).
vec_proxy_equal(x, ...)
x |
A vector x. |
... |
These dots are for future extensions and must be empty. |
The default method calls vec_proxy()
, as the default underlying
vector data should be equal-able in most cases. If your class is
not equal-able, provide a vec_proxy_equal()
method that throws an
error.
A 1d atomic vector or a data frame.