Datasets used in the introductory R4WRDS class.
For a simple single download, we can use this zipped file which includes all the data, folders, and an RStudio project:
Download and unzip into a folder where you want your RProjects to live, and double click the intro_proj.Rproj
file.
Best practice is to create a new RStudio project, then run the following code inside your new project to download these data.
# create a data directory in your project
dir.create("data") # warning is ok if already exists!
# downloads the data.zip file to the data directory
download.file("https://github.com/r4wrds/r4wrds-data-intro/raw/main/data.zip", destfile = "data/data.zip")
# unzip the data:
unzip(zipfile = "data/data.zip")