Re: [R] Pipe precedence

2021-05-23 Thread Duncan Murdoch
On 22/05/2021 8:26 p.m., Jeff Newmiller wrote: What is the precedence of the new |> pipe operator? I don't see it mentioned in ?Syntax, nor does it come up when I search the R Language Definition document. It's the same precedence as the %any% operators listed in the ?Syntax table, so it mat

Re: [R] Pipe precedence

2021-05-22 Thread Jeff Newmiller
R 4.1.0 was released this week with a new pipe operator and a new anonymous function shorthand (\(x) x^2). The pipe operator is not quite as flexible as the magrittr pipe, but it is faster (not that the magrittr pipe is noticably slow) and built-in. On May 22, 2021 8:07:27 PM PDT, Caitlin Gibbo

Re: [R] Pipe precedence

2021-05-22 Thread Eric Berger
This is part of the R-4.1.0 release which came out a few days ago. See 1. https://stat.ethz.ch/pipermail/r-announce/2021/000670.html 2. https://www.jumpingrivers.com/blog/new-features-r410-pipe-anonymous-functions/ 3. https://community.rstudio.com/t/psa-r-4-1-0-release-requires-rstudio-preview/1052

Re: [R] Pipe precedence

2021-05-22 Thread Caitlin Gibbons
I didn’t know R had a new pipe operator, but I have seen “|>” (without quotes) used in the Elixir language though. Are there now two? “%>%” from the magrittr package and “|>” which is built-in? > On May 22, 2021, at 5:26 PM, Jeff Newmiller wrote: > > What is the precedence of the new |> pipe

[R] Pipe precedence

2021-05-22 Thread Jeff Newmiller
What is the precedence of the new |> pipe operator? I don't see it mentioned in ?Syntax, nor does it come up when I search the R Language Definition document. -- Sent from my phone. Please excuse my brevity. __ R-help@r-project.org mailing list -- To U