NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Plumbers, chains, and famous painters: The history of the pipe operator in R (adolfoalvarez.cl)
MostlyStable 59 minutes ago [-]
I had always wondered about the magrittr package name, but never enough to actually go find out. That's a cool origin.
wwfn 7 hours ago [-]
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 7 hours ago [-]
Refreshing to see such articles.
6 hours ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:51:18 GMT+0000 (Coordinated Universal Time) with Vercel.