6) Intro to Functions
π Lecture
You donβt need to be an expert programmer to use R, but learning more about programming allows you to automate common tasks, and solve new problems with greater ease. Weβll discuss how to write basic functions, and the notion of R expressions.
π― Objectives
At the end of this week you will be able to:
- Describe the main parts of a function (i.e. anatomy of a function)
- Give a simple example for creating a function
- Explain the concept of an R compound expression
π Reading
π¬ Lab
You will practice creating simple functions.