Writing Customized Functions

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset