Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 856 Bytes

File metadata and controls

27 lines (18 loc) · 856 Bytes

Workshop on writing functions in R

Taught by Ritika Giri, Northwestern University IT Research Computing and Data Services

Getting Started

  • Download the materials to your machine by clicking on the green "Code" button on the top right and selecting "Download ZIP".
  • Unzip the downloaded folder, and double-click on the .RProj file to open up the R Project in RStudio.
  • Open nsir-writing-functions.qmd and work through the materials.

Concepts

  • Declaring functions in R
  • Function arguments
  • Returning values
  • Passing columns of data to functions with {{}}

Components

  • README.md markdown file outlining the repository
  • .Rproj folder maintaining an R Project for this directory
  • nsir-writing-functions.qmd Quarto document with the workshop contents

Required Installs

  • R and RStudio
  • Packages: tidyverse and palmerpenguins