Skip to contents

[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")

Arguments

indicator

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

lang

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

Value

TRUE if indicator exists, otherwise FALSE.

Examples

is_indicator_valid("0011823")
#> [1] TRUE