Write your own function in R

  • Categories R
  • Duration 1h
  • Last Update July 19, 2021


This micro-course introduces how to write your own function in R.

R has many ready to use functions to calculate statistics and to make plots. In some cases, when you are repeating the same calculation or the same plot, you may wish to write your own function to make your code more efficient.

Prior knowledge of R is assumed.

Topics for this course

1 Lessons1h

How to write a function

Find the mean