View source: R/is_indicator_valid.R
is_indicator_valid | R Documentation |
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
is_indicator_valid(indicator, lang = "PT")
indicator |
INE indicator ID as a 7 character string. Example: "0010003". |
lang |
One of "PT" or "EN". Default is "PT". |
TRUE if indicator exists, otherwise FALSE.
is_indicator_valid("0011823")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.