get_materials_itewr: Download Book Materials

View source: R/get_materials_itewr.R

get_materials_itewrR Documentation

Download Book Materials

Description

This function allows you to download supplements for Introduction to Econometrics with R, an interactive online-companion to the textbook Introduction to Econometrics (Stock & Watson 2015). The book can be found here.

Usage

get_materials_itewr(dir = ".")

Arguments

dir

A character specifying the path to the directory where the files will be saved. Defaults to the current working directory.

Details

The function is a wrapper for get_repo_files() and squeeze_rmds(). It downloads materials such as datasets and R codes from the GitHub repository of the book (mca91/EconometricsWithR) and saves them to the current working directory (or a location of choice provided to the argument dir) according to the following structure:

  • /ITEWR/Rmds (.Rmd files)

  • /ITEWR/Data (Datasets)

  • /ITEWR/Rcodes (R Scripts for each chapter)

References

Stock, J. H. and Watson, M. W. (2015). Introduction to Econometrics, Third Update, Global Edition. Pearson Education Limited.

Examples

## Not run: 
# download materials
get_materials_itewr()

## End(Not run)

mca91/itewrpkg documentation built on Nov. 10, 2023, 12:03 p.m.