In this chapter, you will learn to write your own customized functions, and understand how to work with various data types within a function and access an output of a function. This chapter contain the following recipes:
- Writing your first function in R
- Writing functions with multiple arguments and use of default values
- Handling data types in input arguments
- Producing different output types and return values
- Making a recursive call to a function
- Handling exceptions and error messages