~/talk

vctrs: Creating custom vector classes with the vctrs package

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [software-architecture]
slides:none on file

vctrs provides a reproducible path to make S3 vector classes that keep non‑decimal currencies as structured triples (pounds, shillings, pence) instead of forcing decimalization. The demo builds deb_lsd and deb_decimal classes (record-style list vectors and double-backed decimals), implements normalization (compound-unit remainder division), and defines coercion with vec_ptype2 and casting to convert and compare mixed types. Works with tibbles; record vectors still have some mutate rough edges. vctrs deb_lsd vec_ptype2

AI-written summary · about

  1. 0:00Introduction
  2. 0:31What I do
  3. 1:43Problem space
  4. 5:20What do I need to do
  5. 6:40Goals of vctrs
  6. 7:02Benefits of vctrs
  7. 7:27Outline of the talk
  8. 8:42Overview of the steps
  9. 9:16Overview of vctrs
  10. 10:03design considerations
  11. 11:27simplified vector class
  12. 12:54Implementing the class
  13. 14:03Casting and coercion
  14. 14:26Casting and coercion workflow
  15. 15:20Design choices
  16. 15:53Casting
  17. 16:57Combining
  18. 18:17Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.