Abstract
As you learned in the previous chapters, everything in R is an object. This makes R an object-oriented programming language. There are many built-in functions and thousands more contributed by the R community. Before you consider writing your own function for a particular problem, check the R documentation and discussions to see if someone else has already done the work for you. One of the best things about the R community is that new packages appear regularly, and it is quite likely someone else has already faced and solved the same programming problem. If they haven’t, it is easy enough to create your own functions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Larry Pace
About this chapter
Cite this chapter
Pace, L. (2012). Writing Reusable Functions. In: Beginning R. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4555-1_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4555-1_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4554-4
Online ISBN: 978-1-4302-4555-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books