~/talk

List-columns in data.table

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

Shows how to create and use list-columns in data.table to nest and unnest real examples (Star Wars characters with a per‑film revenue table), using the by argument, .SD and := (the walrus operator) plus purrr::map() to build per‑group list columns, then join and unnest back out. Bench::mark() comparisons to dplyr::group_nest() and tidyr::unnest() report lower memory use and faster runs as data and group count grows. A tiny R package tidyfast collects the helpers; use as.data.table vs setDT for copies.

AI-written summary · about

  1. 0:00Intro
  2. 7:07Example
  3. 9:21Coding
  4. 12:40Joining
  5. 17:58Performance
~/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.