dl_and_read_single_zip_file: Download, reads and organizes a single zip file

Description Usage Arguments Value Examples

View source: R/util.R

Description

After downloading the file, this function will read its contents and organize it in a dataframe.

Usage

1
2
dl_and_read_single_zip_file(type_data, year_in, quarter_in, cache_folder,
  do_cache)

Arguments

type_data

Type of dataset ('yearly' or 'quarterly')

year_in

The year

quarter_in

The quarter (e.g. 'Q1')

cache_folder

Path of cache folder to save all memoise files and downloaded zip files

do_cache

Use memoise cache system? TRUE (default) or FALSE

Value

A dataframe with the clean data from zip file

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

df <- dl_and_read_single_zip_file(type_data = 'yearly',
                                  year_in = 2018,
                                  quarter_in = 'Q1',
                                  cache_folder = 'GetEdgarData-cache',
                                  do_cache = TRUE)

## End(Not run)

msperlin/GetEdgarData documentation built on Jan. 21, 2021, 9:14 a.m.