markfairbanks / tidytable

Tidy interface to 'data.table'
https://markfairbanks.github.io/tidytable/
Other
450 stars 32 forks source link

`first`/`last`/`nth` should extract the value from a list #534

Closed markfairbanks closed 2 years ago

markfairbanks commented 2 years ago
pacman::p_load(tidytable, dplyr)

l <- list("a", "b")

nth(l, 1)
#> [1] "a"

nth.(l, 1)
#> [[1]]
#> [1] "a"