Working Directory

A working directory is where R reads and saves files. I recommend you to always set the working directory before working with R.

You can set the working directory by using setwd(). Specify the path to the folder inside the parentheses.

setwd("~/Library/CloudStorage/OneDrive-Personal/1_UMN/Teaching/1_IntroToMeasurement/R/IntroR")  # set working directory