3. Packages & Working Directory

CWRU · STAT 312/312R

Install & load packages

install.packages(c("readr","readxl","ggplot2","dplyr"))
library(readr); library(readxl); library(ggplot2); library(dplyr)

Working directory

getwd()        # where R reads/writes by default
#setwd("C:/Users/you/Documents/stat312")  # set only when needed

Try it