Lionel Henry

Results 172 issues of Lionel Henry

```r vec_cast(c(a = 1, b = 3), int()) #> [1] 1 3 ```

op:ptype2-cast
theory
names

Once the semantics of `vec_is()` are fixed (#1687), explore whether we can improve performance of common type determination of the elements of homogeneous lists by using `vec_is()`.

op:ptype2-cast
performance

We could make `vec_is()` generic by requiring the result of `vec_ptype()` to only contain essential attributes. Methods for `vec_ptype()` would need to remove any details attributes. Ideally they'd just return...

op:identity-vectorness
theory

In practice attributes are an unordered type.

bug
op:equal-compare-hash

https://github.com/tidyverse/dplyr/issues/5339 from @billdenney

type:dataframe
conditions

Branched from #1226. Following `vec_chop2()` and `vec_map()`, this further explores the idea of "extracting" variants of vctrs primitives. - With atomic vectors, `vec_slice2()` and `vec_assign2()` are equivalent to `vec_slice()` and...

* `I()`. * haven-labelled: https://github.com/tidyverse/haven/pull/502. * Default `vctrs_vctr` subclasses: #968. * Feature request for a generic vctr class: #1162. * `omit` and `exclude`: #1160, #1179. * `table`: #1230.

op:ptype2-cast
theory

Data frame restoration is currently weird because we first call restore-default, then dispatch on `vec_restore()`, which ends up calling restore-default again. I suspect it makes sense to automatically call restore...

theory

Currently unclear what are the consequences of the special handling of `vctrs_vctr` classes. It makes me nervous that rcrds and list-ofs inherit from the current behaviour that I don't understand...

theory
ui