Slide 12
Slide 12 text
ύΠϓԋࢉࢠͷ͍ํ
ʙNBHSJUUSύοέʔδͷύΠϓԋࢉࢠ
ͱͷൺֱʙ
実⾏速度では組み込み > magrittr
ユーザが違いを認識できるほどではない
https://www.tidyverse.org/blog/2020/11/magrittr-2-0-is-here/
f1 <- function(x) x
f2 <- function(x) x
f3 <- function(x) x
f4 <- function(x) x
p <-
bench::mark(
`1` = NULL %>% f1(),
`4` = NULL %>% f1() %>% f2() %>% f3() %>% f4(),
`1_native` = NULL |> f1(),
`4_native` = NULL |> f1() |> f2() |> f3() |> f4())
組み込み
組み込み
magrittr
magrittr