get_stats: Get data on a particular statistic

View source: R/statsnz.R

get_statsR Documentation

Get data on a particular statistic

Description

Get statistics data on a given statistic (optionally) and given group from the StatisticsNZ API

Usage

get_stats(stat, group = NULL)

Arguments

stat

The statistic to fetch.

group

The (optional) group of this statistic to fetch

Value

a data.frame containing the statistic of interest, usually a time-series


jmarshallnz/statsNZ documentation built on Feb. 25, 2023, 4:53 a.m.