Functions
module 6
week 10
conditional statements
functions
messages
Create your own functions to work with data
Writing your own functions allows you to apply the same code repeatedly, reducing duplicate code and simplifying code maintenance.
Learning objectives
- Learn how to create your own functions and include arguments
- Return output and messages to the console
- Conditionally execute code
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R4DS1 19
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read R4DS2 27