In this chapter of Essential R we'll take a look at writing functions, debugging them, and also at creation of packages.
Upon completion of this lesson, you should be able to:
- Write simple functions with default arguments
- Control how values are returned by your function
- Debug a function
- Recognize and prevent some common errors in user-created functions
- Create a simple package