Remix.run Logo
▲ Plumbers, chains, and famous painters: The history of the pipe operator in R(adolfoalvarez.cl)
43 points by sinnsro 2 days ago | 2 comments
▲wwfn 5 hours ago | parent | next [-]

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 6 hours ago | parent | prev [-]

Refreshing to see such articles.