Learn R Programming

bonn (version 1.0.3)

get_metadata: Get Metadata for a Variable

Description

get_metadata retrieves the metadata for a single variable

Usage

get_metadata(variable)

Value

a data.frame with columns Name (variable name), Kurzname (short name), Algorithmus (information on measurement), Quelle (source) and Anmerkungen (notes).

Arguments

variable

variable identifier as character string

Details

To get a list of available variables use get_variables.

See Also

get_variables get_data

Examples

Run this code

# The SSL vertification seems to fail for some Linux systems. 
# This is likely because of a SSL certificate issue on the INKAR server. 
# Disabling SSL verification comes with risks: 
# https://curl.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html
httr::set_config(httr::config(ssl_verifypeer = 0L))

# Metadata for GDP variable
get_metadata("010")

# Reset configuration  
httr::reset_config()


Run the code above in your browser using DataLab