English

fc: A Package for Generalized Function Composition Using Standard Evaluation

Computation 2018-06-29 v1

Abstract

In this article, we present a new R package fc that provides a streamlined, standard evaluation-based approach to function composition. Using fc, a sequence of functions can be composed together such that returned objects from composed functions are used as intermediate values directly passed to the next function. Unlike with magrittr and purrr, no intermediate values need to be stored. When benchmarked, functions composed using fc achieve favorable runtimes in comparison to other implementations.

Keywords

Cite

@article{arxiv.1806.11021,
  title  = {fc: A Package for Generalized Function Composition Using Standard Evaluation},
  author = {Xiaofei Wang and Michael John Kane},
  journal= {arXiv preprint arXiv:1806.11021},
  year   = {2018}
}

Comments

To be submitted to RJournal