Learn R Programming

ineptR (version 0.2.1)

is_indicator_valid: Check if indicator exists

Description

[Experimental]
Check if the indicator exists and is callable via the INE API.
Indicator ID can be found in the url under the 'indOcorrCod' query parameter when browsing the website.
Example: https://www.ine.pt/xportal/xmain?xpid=INE&xpgid=ine_indicadores&indOcorrCod=0010003&contexto=bd&selTab=tab2

Usage

is_indicator_valid(indicator, lang = "PT")

Value

TRUE if indicator exists, otherwise FALSE.

Arguments

indicator

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

lang

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

Examples

Run this code
is_indicator_valid("0011823")

Run the code above in your browser using DataLab