July 2016
Beginner to intermediate
832 pages
21h 51m
English

Now that you’ve seen how to write your own functions in R, let’s examine some common function augmentations and behaviors. In this chapter, you’ll learn how to make your functions throw an error or warning when they receive unexpected input. You’ll also see some simple ways to measure completion time and check progress for computationally expensive functions. Finally, you’ll see how R masks functions when two have the same name but reside in different packages.
When there’s an unexpected problem during execution of a function, R will notify you with either a warning or an error. In ...
Read now
Unlock full access