fcp

From MaRDI portal
Revision as of 20:10, 12 March 2024 by Import240312060351 (talk | contribs) (Created automatically from import240312060351)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Software:5979239



CRANfcpMaRDI QIDQ5979239

Function Composition

Xiaoran Tong

Last update: 5 December 2023

Software version identifier: 0.1.0


Copyright license: GNU General Public License, version 3.0, GNU General Public License, version 2.0

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().