STAT1003 – Statistical Techniques
Dr. Emi Tanaka
Australian National University
These slides are best viewed on a modern browser like Google Chrome on a desktop or laptop. Some interactive components may require some time to fully load.
data/data.csv) orC:\\user/myproject/data.csv)You should avoid using absolute path! Why?
getwd() and setwd(), respectively.
.RData, .rda or rds)..RData, .rda or rds saves R objects so you don’t need the data to be in a data.frame.data/template_Morris.xlsx

In RStudio Desktop, you can click on the file for importing via GUI.


Unless you are responsible for entering the data, you should never modify the original, stored data (note: exceptions do apply).
readr::read_csv() and readr::write_csv() to read and write CSV files.readxl::read_xlsx() to read Excel files.saveRDS() (recommended) and multiple objects using save().readRDS() or load().


STAT1003 – Statistical Techniques