vec_proxy_equal

0th

Percentile

Equality proxy

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()).

Keywords
internal
Usage
vec_proxy_equal(x)
Arguments
x

A vector x.

Details

The default method calls vec_proxy_compare, which makes all vector classes equal-able by default. If your object is not, provide a vec_proxy_equal() method that throws an error.

Value

A 1d atomic vector or a data frame.

Aliases
  • vec_proxy_equal
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.