R adds native pipe and lambda syntax
developer.r-project.org
R adds native pipe and lambda syntax
1–10 of 150 posts
Re: R adds native pipe and lambda syntax
#2Re: R adds native pipe and lambda syntax
#3Re: R adds native pipe and lambda syntax
#4That backslash syntax is pretty funky, but then again all of R is a little funky. Very nice addition to the language though!
Re: R adds native pipe and lambda syntax
#5Re: R adds native pipe and lambda syntax
#6Luke Tierney explains the move from %>% to a native pipe |> here [1]. The native pipe aims to be more efficient as well as addresses issues with the magrittr pipe like complex stack traces.
Turns out the |> syntax is also used in Julia, Javascript and F#.
The lambda syntax (\(x) -> x + 1) is similar to Haskell's (\x -> x + 1).
[1] https://www.youtube.com/watch?v=X_eDHNVceCU&feature=youtu.be...
Re: R adds native pipe and lambda syntax
#7Re: R adds native pipe and lambda syntax
#8Better late than never, but dplyr solved the pipe problem long time ago.
Much better to use the OCaml, F# syntax.
Think Julia uses it too.
Re: R adds native pipe and lambda syntax
#9Better late than never, but dplyr solved the pipe problem long time ago.
Re: R adds native pipe and lambda syntax
#10Better late than never, but dplyr solved the pipe problem long time ago.