Abstract
Writing your own functions in R enables you to combine a set of R commands into a function that is easy to call and can be generalized. Functions are foundational to R. To become a more advanced user or developer of R, a good understanding of what functions are and how to write them is crucial. Broadly speaking, a function takes one or more inputs and processes them to produce and return output.
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
© 2016 Matt Wiley and Joshua F. Wiley
About this chapter
Cite this chapter
Wiley, M., Wiley, J.F. (2016). Writing Functions. In: Advanced R. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2077-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2077-1_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2076-4
Online ISBN: 978-1-4842-2077-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)