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.