Function Composition

A function composition operator to chain a series of calls into a single function, mimicking the math notion of (f o g o h)(x) = h(g(f(x))). Inspired by 'pipeOp' ('|>') since R4.1 and 'magrittr pipe' ('%>%'), the operator build a pipe without putting data through, which is best for anonymous function accepted by utilities such as apply() and lapply().


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fcp")

0.1.0 by Xiaoran Tong, 3 years ago


https://github.com/xiaoran831213/R_fun_comp


Browse source code at https://github.com/cran/fcp


Authors: Xiaoran Tong [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license



See at CRAN