Learn R Programming

nisrarr (version 0.1.1)

get_metadata_field: Get metadata

Description

Retrieve metadata from a dataset, such as contact information, notes, and official statistics status.

Usage

get_metadata_field(x, field)

get_metadata(x)

Value

Metadata if the field is found, otherwise NULL

Arguments

x

A nisra_df object created using nisra_read_dataset()

field

The metadata field to read. See details for a list of fields.

Details

Every dataset should have the following metadata fields:

  • contact - contact name, email and phone

  • copyright - copyright information

  • experimental - a flag for experimental statistics

  • note - any notes describing the data

  • official - a flag for official statistics

  • subject - a code and label for the subject

  • updated - date

Examples

Run this code
mye <- nisra_read_dataset("MYE01T09")
get_metadata(mye)
get_metadata_field(mye, "contact")

Run the code above in your browser using DataLab