To begin our analysis, we must first launch R and set our working directory:
setwd(dir)
function. The following code is a hypothetical example. Your working directory should be a relevant location on your own computer.> #set the R working directory using setwd(dir) > setwd("/Users/johnmquick/rBeginnersGuide/")
getwd()
command:> #verify the location of your working directory > getwd() [1] "/Users/johnmquick/rBeginnersGuide/"