fn.piper: This is a piper for functions

Description Usage Arguments Value Examples

View source: R/Functions_Installer.R

Description

This is a piper for functions

Usage

1

Arguments

...

the functions you want to pipe

Value

returns a custom function that executes all the functions in reversed order

Examples

1
2
3
4
5
#' custom_fn <- fn.piper(length, unique)
custom_fn(rep(1:5, 1:5)) would be 5

custom_fn <- fn.piper(is.numeric, length, unique)
custom_fn(rep(1:5, 1:5)) would be TRUE

marcusihsmarkit/BasicSettings documentation built on May 21, 2019, 11:44 a.m.