1. Congratulations
Well done for completing the course! Before you go, let's take a look at what you just learned and what you can do next.
2. In Chapter 1 you learned
Chapter 1 motivated why you should write functions. The main reason is that it stops you having to write the same code over and over again.
You also learned a process for converting scripts into functions, and learned that data arguments should come before detail arguments in the function signature.
3. In Chapter 2 you learned
Chapter 2 showed you how to set default arguments using name equals value syntax.
You also saw how to use the ellipsis argument to pass arguments between functions, and checked some user inputs using the assertive package.
4. In Chapter 3 you learned
Chapter 3 covered return values. In particular, you learned how to return early from a function, how to prevent printing, and how to return multiple values.
You also learned about environments, and the scoping rules that determine which variables can be seen at any point in your code.
5. In Chapter 4 you learned
Chapter 4 put your skills into practice with a case study. I hope you saw how useful writing your own functions can be when performing your own analyses.
I also hope that you realized that functions don't have to be big, complicated things. Even simple, one-line functions can be very useful.
6. More modeling
The course touched upon some modeling techniques, and naturally DataCamp has dedicated courses where you can learn more.
7. Tidying models
You also saw how to tidy your models into data frames using the broom package, which is also discussed further in other DataCamp courses.
8. Unit testing
The flipside to testing your users' code is to write unit tests to ensure your own code works as you intend it to. This is especially important when it comes to package development.
9. Environments
Environments are an important variable type when it comes to object-oriented programming, so that course discusses them further.
10. Thanks for taking the course!
Gosh, there's so much more data science to learn! For now though, I hope you've enjoyed learning how to write functions.