Skip to main content

Writing Functions

Why and how to write custom R functions, including documenting functions with roxygen2 comments.
functions
r-basics
lecture
intermediate
LearningLearning Objectives

After completing this session, you will be able to:

  • Explain the importance of using and developing functions
  • Create custom functions using R code
  • Document functions to improve understanding and code communication