Upcoming native pipe for R will support a lambda-alike operator '=>' when data needs to be assigned:
mtcars |> subset(cyl == 4) |> d => lm(mpg ~ disp, data = d)
which is quite nice and avoids the backslash lambda-alike.
See @LukeTierney4 on r-devel just now. #rstats
Jan 12, 2021 Β· 8:16 PM UTC
6
36
4
162
Nicer still with ligatures
(here via #emacs using @nordtheme)
1
3
34






