abs_metadata: Download dataset metadata from the ABS API

Description Usage Arguments Value Author(s) Examples

View source: R/abs-api-functions.R

Description

This function queries and returns all metadata associated with a specified dataset from ABS.Stat.

Usage

1
abs_metadata(id, lang = "en")

Arguments

id

ABS dataset ID.

lang

Preferred language (default 'en' - English).

Value

data frame in long format

Author(s)

David Mitchell <david.pk.mitchell@gmail.com>

Examples

1
2
3
4
5
6
7
8
  
    datasets <- abs_datasets();
    x <- abs_metadata("CPI");
    x <- abs_metadata(grep("cpi", datasets$id, ignore.case=TRUE, value=TRUE));
    names(x)
    y <- abs_metadata(datasets$id[1]);
    names(y)
  

raustats documentation built on Jan. 11, 2020, 9:31 a.m.