Advertisement · 728 × 90
#
Hashtag
#magrittr
Advertisement · 728 × 90
Preview
Piping data.tables | R-bloggers Like a devoted plumber, modern R loves pipes. The magrittr pipe has a long history and it’s fair share of detractors, but with the implementation of the native pipe operator released in May 2021 it’s ...

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

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
Post image

Big win for #rstats users in todays NYT crossword #magrittr ❤️

6 0 0 0
Preview
a man in a white shirt and tie is sitting at a table with his mouth wide open ALT: a man in a white shirt and tie is sitting at a table with his mouth wide open

%<>% ⁉️

“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
Post image

The evolution of pipes in #magrittr: pipe, pipette, back-pipe.

0 0 0 0