Abstract
A pipeline-based approach to data processing necessitates a functional programming approach. After all, pipelines are compositions of functions, and loops and variable assignment do not work well with pipelines. You are not precluded from imperative programming, but you need to wrap it in functions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The name comes from the syntax for functions that uses the Greek letter lambda, λ. A function that adds two to its argument would be written as λx.x + 2.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Thomas Mailund
About this chapter
Cite this chapter
Mailund, T. (2019). Functional Programming: purrr. In: R Data Science Quick Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4894-2_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4894-2_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4893-5
Online ISBN: 978-1-4842-4894-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)