Abstract
In this chapter, we explore the programming paradigm called functional programming and how it relates to R. There are many definitions of what it means for a language to be a functional programming language, and there have been many language wars over whether any given feature is “pure” or not. I won’t go into such discussions, but some features, I think everyone would agree, are needed. You should be able to define higher-order functions, you should be able to create closures, and you probably want anonymous functions as well.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 Thomas Mailund
About this chapter
Cite this chapter
Mailund, T. (2022). Functional Programming. In: Beginning Data Science in R 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8155-0_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-8155-0_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-8154-3
Online ISBN: 978-1-4842-8155-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)