1:10 |> mean() |> round()
[1] 6
Pedro J. Aphalo
2022-04-29
2022-04-29
pipe operator
For Windows users the most significant changes are that now the binary distribution contains only a 64 bit executable. A new build chain is used for Rtools 4.2 is required to build from sources packages that include C, C++ or FORTRAN code. As is always the case, all CRAN packages are tested on CRAN itself.
Relevant to all operating systems the recently added pipe oprerator (|>
) now supports the use of the underscore (_
) as a placeholder on the rhs of the operator.
These two statements are equivalent, but _
makes it possible to pipe by name the value returned by the lhs into any parameter on the rhs.
There are also some improvements to the ‘grid’ package adding flexibility to pattern and gradient fills and masks, which are recently added features. They are yet to be well supported by ‘ggplot2’.