[Rd] Generalised piping into operators

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Fri Apr 21 18:05:57 CEST 2023


On 21/04/2023 11:33 a.m., Michael Milton wrote:
> Thanks, this makes sense. Is there a similar precedence reasoning behind 
> why operator functions (`+` etc) can't be piped into?

Yes:

 > identical(quote(1 + 1), quote(`+`(1, 1)))
[1] TRUE

Duncan Murdoch



More information about the R-devel mailing list