Data formats are varied and differ by domains and software. We could spend weeks on the different formats and file types that companies and governments use to store their data. We will practice with a few standard formats that are often used for storing data. In the future, you will most likely have to do some research to figure out other formats (but you can do it with R or Python). We have a challenge to read in the five formats of the DOW data and checking that they are all identical using all.equal()
. One final note, your R script should do all the work. That is your script should download the files and/or read directly from the web location of the file.
This reading will help you complete the tasks below.
library(readr)
, library(haven)
, library(readxl)
to read in the five files found on GitHub
read_rds(url("WEBLOCATION.rds"))
to download and read the .rds
file typelibrary(downloader)
R package and use the download(mode = "wb")
function to download the xlsx data as read_xlsx()
cannot read files from the web pathtempfile()
function to download and save the file.all.equal()
.R
script and your image to your repository and be ready to share your code that built your graphic in class