The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

RBNZ

The RBNZ package allows users to download data from the Reserve Bank of New Zealand website.

An overview of the package can be found on CRAN or in vignettes/Overview.Rmd.

Installation

## Install from CRAN:
install.packages('RBNZ')

## Install the development version from GitHub:
## install.packages("devtools")
devtools::install_github("rntq472/RBNZ")

Usage

The main entry point is the getSeries function where users can choose a data series to retrieve:


library(RBNZ)

m1 <- getSeries('M1')

Note - the RBNZ website has been put behind Cloudflare so now there are some extra steps for using this package.

One option is to email the RBNZ and request that your (static) public IP address be whitelisted. The email to contact is listed here.

The second option is to download the necessary files from the RBNZ website manually through your browser and then use this package to read and organise them. This can be done by downloading the spreadsheets needed and saving them in a given directory without changing their file names. This could be done from the individual series page or from the summary page.

For example for the B1 series a user could download and save the following spreadsheets:

They could then load the data as follows:


library(RBNZ)

dat <- getSeries('B1', destDir = 'path_to_downloaded_files', cacheOnly = TRUE)

If you are always having to do this then you can specify the download path in your .Rprofile using options(RBNZ.destDir = "path/to/stored/files").

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.