In R 4.1 introduced the native forward pipe (|>
) that can be used instead of magrittr's %>%
. For example,
c(1, 2, 3) |> length()
is a valid syntax in R > 4.1 and will return 3.
magrittr has a collection of aliases. For example, instead of
1 * 2
I can write
1 %>% magrittr::multiply_by(2)
What are the R > 4.1 equivalent to magrittr's aliases?