Skip to contents

Retrieves specific data series by their StatCan vector identifiers through the public Web Data Service getDataFromVectorsAndLatestNPeriods endpoint. This is the small, targeted alternative to morie_ingest_statcan_cansim, which downloads a whole table (millions of rows). No credentials are required; the WDS is public. The POST runs through rmorie's native libcurl backend — no extra package dependency.

Usage

morie_ingest_statcan_vectors(vectors, periods = 12L, timeout = 60L)

Arguments

vectors

Character or numeric StatCan vector IDs. A leading "v" is accepted and stripped (e.g. "v41690973" or 41690973).

periods

Number of most-recent reference periods to return per vector.

timeout

Per-request timeout, seconds.

Value

A base R data.frame, one row per (vector, period): vector, ref_date, value, decimals, scalar_factor, symbol_code, release_time.

Examples