Functions are blocks of code organised together which perform a specific task.
R comes with many built-in functions which we can add to by downloading fantastic packages.
However, writing your own functions is where the true power of R lies - though it can be confusing.
1/16
In this thread I will cover:
1. When to write functions 2. How to write functions 3. Tidy evaluation 4. Passing multiple arguments with ellipsis ... 5. Error handling arguments 6. Side effects
Functions are blocks of code organised together which perform a specific task.
R comes with many built-in functions which we can add to by downloading fantastic packages.
However, writing your own functions is where the true power of R lies - though it can be confusing.
1/16
In this thread I will cover:
1. When to write functions 2. How to write functions 3. Tidy evaluation 4. Passing multiple arguments with ellipsis ... 5. Error handling arguments 6. Side effects