R adds native pipe and lambda syntax
11–20 of 150 posts
Re: R adds native pipe and lambda syntax
#12Earlier quoted context omitted.
AFAIK the same as in Julia.
I think that symbol is used as an approximation of "lambda" character (λ) on a standard US keyboard.
Re: R adds native pipe and lambda syntax
#13Better late than never, but dplyr solved the pipe problem long time ago.
Re: R adds native pipe and lambda syntax
#14I wonder if RStudio will change its `ctrl` + `shift` + m shortcut from the magrittr ( %>% ) style pipes to these new pipes ( |> )
Re: R adds native pipe and lambda syntax
#15I'm sure some of us who are out of the loop might be wondering: what about the magrittr pipe operator (%>%) that we all know and love? Luke 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…
Re: R adds native pipe and lambda syntax
#16I'm sure some of us who are out of the loop might be wondering: what about the magrittr pipe operator (%>%) that we all know and love? Luke 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…
## Edit
Corrected a notation.
Re: R adds native pipe and lambda syntax
#17Earlier quoted context omitted.
AFAIK the same as in Julia.
I think that symbol is used as an approximation of "lambda" character (λ) on a standard US keyboard.
Re: R adds native pipe and lambda syntax
#18I'm sure some of us who are out of the loop might be wondering: what about the magrittr pipe operator (%>%) that we all know and love? Luke 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…
Beautiful. - Elixir has this as well. Love it. - In Mathematica you'd have to write `data // f // g` to denote `g(f(data))`. ## Edit Corrected a notation.
Re: R adds native pipe and lambda syntax
#19I'm sure some of us who are out of the loop might be wondering: what about the magrittr pipe operator (%>%) that we all know and love? Luke 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…
Beautiful. - Elixir has this as well. Love it. - In Mathematica you'd have to write `data // f // g` to denote `g(f(data))`. ## Edit Corrected a notation.
Re: R adds native pipe and lambda syntax
#20Earlier quoted context omitted.
Beautiful. - Elixir has this as well. Love it. - In Mathematica you'd have to write `data // f // g` to denote `g(f(data))`. ## Edit Corrected a notation.
I don’t know Mathematica, but wouldn’t data // g // f make more sense for f(g(data)) ?