The data.table equivalent to pipes is chaining which is just putting operations behind each other: dt[…][…]. You can read more about data.table and pipes here: www.r-bloggers.com/2024/01/pipi... #Rstats #Rladies #tidyverse #magrittr
Hashtag
#magrittr
Advertisement · 728 × 90
8
0
0
1
A thread on pipes since my #RoCur period fell right in the middle of a #baseR |> vs. #magrittr %>% debate: I was fully ready to advocate for the base R pipe, but yesterday I wanted to use cor() at the end of a pipe and Stack Overflow (yes, I know) reminded me of this gem:
mtcars %$% cor(disp, mpg)
19
1
2
0
%<>% ⁉️
“Assignment pipe
Pipe an object forward into a (rhs) function or call expression and update the lhs object with the resulting value.”
github.com/tidyverse/ma...
#magrittr #rstats
2
0
2
0
The evolution of pipes in #magrittr: pipe, pipette, back-pipe.
0
0
0
0