Comment

Comment by 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
parent wwfn 25 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton