gdpimporterr: Download the zipped file, unzip, rename the unzipped files,...

Description Usage Arguments Value Examples

View source: R/gdpimporterr.R

Description

Download the zipped file, unzip, rename the unzipped files, and outputs a data frame along with the title from meta data.

Usage

1
gdpimporterr(url, filename = NULL, filetype = "csv")

Arguments

url

A character vector with one element: URL to the zip file (ends with .zip)

filename

A character vector with one element: specify the name of csv data (not the MetaData). If NULL, 'open_canada_data.csv' will be the filename. This argument is not useful when filetype is set to 'all'

filetype

A character vector with one element: the types of files that will be extracted. If 'csv', only csv files are extracted'. If 'all', files of all types are extracted

Value

A list whose first element is a data frame and second element is a character with one element

Examples

1
gdpimporterr("https://www150.statcan.gc.ca/n1/tbl/csv/36100400-eng.zip")

UBC-MDS/gdphelperR documentation built on Feb. 6, 2022, 7 a.m.