Settings

Theme

Plumbers, chains, and famous painters: The history of the pipe operator in R

adolfoalvarez.cl

54 points by sinnsro · 4 comments

Reader

3 threads
MostlyStable

I had always wondered about the magrittr package name, but never enough to actually go find out. That's a cool origin.

wwfn

I only recently discovered \(x) like function wrapping is not required! Where magrittr::%>% uses ., base R's |> can use _, but only for named arguments

     penguins |>
      rpart::rpart(species ~ ., method = "class", data = _) |>
      rpart.plot::prp(extra = 4)
EDIT: maybe that wasn't the case in 2021 when the blog post was written
fithisux

Refreshing to see such articles.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection