magrittr: magrittr - a forward-pipe operator for R
Description
This package provides pipe-forwarding mechanisms similar to
(but not exactly like) e.g. F#'s pipe-forward operator. The semantics of
magrittr yield clean and readable code which can be read from left to right,
rather than from the inside and out (which is the case with nested function
calls), and reduce the need for temporary value bindings. This It is
particularly useful for manipulating data frames etc, where multiple steps
are needed before arriving at the desired result. The package also contains
useful functions/aliases which fit well into the syntax promoted by the
package. For a brief introduction, see vignette("magrittr")
.Details
ll{
Package: magrittr
Type: Package
Version: 1.0.1
Date: 2014-01-14
License: MIT + file LICENCE.
}
The main feature is provided by the %>%
binary operator. It takes a
value (e.g. a data.frame) on the left-hand side and a function or expression
on the right-hand side, see %>%
.