Learn R Programming

ineptR (version 0.2.1)

get_dim_values: Get the set of possible values for all dimensions of the indicator

Description

[Experimental]
Get the set of possible values for all dimensions of the indicator

Usage

get_dim_values(indicator, lang = "PT")

Value

A tidy data frame with dim_num (dimension number), cat_id (dimension description), categ_cod, categ_dsg (Category description), categ_ord (order in which the category appears in the website), categ_nivel (hierarchical order) and value_id (id row for this data frame) for the selected indicator.

Arguments

indicator

INE indicator ID as a 7 character string. Example: "0010003".

lang

One of "PT" or "EN". Default is "PT".

Details

If the indicator is not valid, returns "(PT) O codigo do indicador nao existe. / (EN) The indicator code does not exist."
Calling is_indicator_valid() before using this function is recommended.

Examples

Run this code
get_dim_values("0011823")

Run the code above in your browser using DataLab