magrittr (version 1.0.0)

magrittr-package: magrittr - ceci n'est pas un pipe!

Description

This package provides pipe-forwarding mechanisms similar to (but not exactly like) e.g. F#'s pipe-forward operator. It allows writing code in a sometimes much more clean and readable way, and avoids making a mess in situations of multiple nested function calls. It is particularly useful when manipulating data frames etc. The package also contains a few useful functions which fit well into the syntax allowed by the package. For a brief introduction, see vignette("magrittr").

Arguments

Details

ll{ Package: magrittr Type: Package Version: 1.0.0 Date: 2014-01-01 License: GPL } The main feature is provided by the operator %>%. It takes a value (e.g. a data.frame) on the left and a function expression on the right, see the examples. One can use a single dot, `.`, as a placeholder for the value on the left.

References

This package is inspired by the pipe-forward mechanism in the .NET language F# (Luca Bolognese has made an awesome video introduction to this language which is highly recommended).

See Also

%>%

Examples

Run this code
iris %>% summary

Run the code above in your browser using DataCamp Workspace