get_series returns observations from one or more Bank of Canada series, subject to some date filtering.

get_series(name = NULL, ...)

Arguments

name

A character of at least length 1 indicating the series to retrieve.

...

Additional query parameters. Possible values are start_date and/or end_date (both character), or one of recent, recent_weeks, recent_months, or recent_years (all numeric).

Value

A tibble of size \(length(name) + 1\).

Examples

get_series("FXCADAUD")
#> # A tibble: 1,316 × 2
#>    date       FXCADAUD
#>    <date>        <dbl>
#>  1 2017-01-03     1.03
#>  2 2017-01-04     1.03
#>  3 2017-01-05     1.03
#>  4 2017-01-06     1.03
#>  5 2017-01-09     1.03
#>  6 2017-01-10     1.03
#>  7 2017-01-11     1.02
#>  8 2017-01-12     1.02
#>  9 2017-01-13     1.02
#> 10 2017-01-16     1.02
#> # … with 1,306 more rows

if (FALSE) {
#this is a group
get_series("BAPF")
}