4 ms·
Better late than never, but dplyr solved the pipe problem long time ago.
by f6v 6y ago
Better late than never, but dplyr solved the pipe problem long time ago.
- melling 6y agoi’m new to R but I really prefer the |> to %>% Much better to use the OCaml, F# syntax. Think Julia uses it too.
- data_ders 6y agoAgreed but |> instead of %>% is certainly easier to type! I’ll be interested in trying it out at least
- deleted 6y ago[deleted]
- kkoncevicius 6y agoThere is a big difference between what is allowed from within a package and what is possible in native implementation. As an example - currently this pipe operator seems to be implemented at the parser level. The parser simply takes the pipe expression and translates it into standard nested function call f(g(x)). Which means - there will be almost no cost in speed (%>% was notoriously slow). In addition the user will get the usual error stack in case something within this pipe fails.