download_french_data: Download the data set

Description Usage Arguments Value Examples

View source: R/download_french_data.R

Description

Download the data set

Usage

1
2
3
4
5
6
7
download_french_data(
  dataset_name,
  dir = NULL,
  dest_file = NULL,
  overwrite = FALSE,
  max_tries = 3
)

Arguments

dataset_name

string with the data set name. Use get_french_data_list() to get the list of data sets available to download.

dir

character. Should be a valid directory path where to save the compressed downloaded file.

dest_file

character. Should be a valid file name to save the compressed downloaded file. If dir is defined and dest_file is left empty, the original file name will be used.

overwrite

boolean. Overwrite an existing file?

max_tries

numeric. Number of file download trials.

Value

An objects of class french_dataset with the following elements:

Examples

1
2
ff_3f <- download_french_data('Fama/French 3 Factors')
ff_3f

frenchdata documentation built on Sept. 10, 2021, 5:08 p.m.