Displaying 1 result from an estimated 1 matches for "vec_restor".
Did you mean:
vec_restore
2018 Nov 06
0
An update on the vctrs package
...At the simplest level, `print()` and `str()` are defined in terms of
`format()`. `as.data.frame()` is implemented using the standard
approach used for factor, POSIXct, Date etc.
- `[[` and `[` use `NextMethod()` dispatch to the underlying base
function, then restore attributes with `vec_restore()`. I?m not sure
what the base equivalent of `vec_restore()` is, but it makes
subclassing easier, as described in
<https://adv-r.hadley.nz/s3.html#s3-subclassing>.
- `==`, `!=`, `unique()`, `anyDuplicated()`, and `is.na()` are defined
in terms of `vec_proxy_equal()`. `<...