October 2017
Beginner to intermediate
236 pages
7h 38m
English
Whenever you are creating a function, there could be a conditional statement or even some mathematical operation that might not be executable for all situations. For example, if you are transforming a numeric vector into logarithms, then a negative value will give an error. In this recipe, you will learn how to handle exceptions and errors and/or warnings while you write your own customized functions. There are several functions in R to handle exceptions/errors/warnings as follows: