Skip to contents

Downloads StatCan data given a data.frame of required variables

Usage

download_statcan(to_obtain, column_filters, quiet)

Arguments

to_obtain

A data.frame as returned by determine_variables().

column_filters

A character vector storing the column names of filters. Length 0 if not present.

quiet

Logical with default = FALSE. Should messages be displayed? These messages are intended to give more information about the estimation and data retrieval process.

Value

Returns a list with two named elements: $df stores the downloaded data and $to_obtain the updated data.frame tracking which variables still need to be obtained.