Abstract
R is a functional programming language, meaning that everything you do is basically built on functions. However, moving beyond simply using pre-built functions to writing your own functions is when your capabilities really start to take off and your code development/writing takes on a new level of efficiency. Functions allow you to reduce code duplication by automating a generalized task to be applied recursively. Whenever you catch yourself repeating a function or copy and pasting code there is a good change that you should write a function to eliminate the redundancies.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Boehmke, B.C. (2016). Functions. In: Data Wrangling with R. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-45599-0_18
Download citation
DOI: https://doi.org/10.1007/978-3-319-45599-0_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-45598-3
Online ISBN: 978-3-319-45599-0
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)