Skip to contents

The curated registry supplies a small set of reviewed PXWeb query templates. Portal discovery is a separate, experimental catalog: an identifier or title shared with PXWeb does not establish statistical equivalence.

Usage

nso_indicators(query = NULL, source = c("curated", "portal"), refresh = FALSE)

Arguments

query

Optional literal, case-insensitive text to match across names, identifiers, aliases, and descriptions.

source

"curated" for bundled reviewed concepts, or "portal" for the public government portal catalog.

refresh

Refresh the portal catalog from the service. The curated registry is bundled and reviewed with package releases, so TRUE is not applicable to source = "curated".

Value

A tibble with source-qualified id, source_id, backend, name, unit, query availability, and source metadata. Curated rows also contain definitions, aliases, reviewed selections, caveats and validation dates. Portal rows retain invalid identifiers with queryable = FALSE, report quality flags, and preserve the original registry record in a list column.

Examples

nso_indicators("GDP")
#> # A tibble: 1 × 19
#>   id    source_id backend name  definition unit  unit_status frequency geography
#>   <chr> <chr>     <chr>   <chr> <chr>      <chr> <chr>       <chr>     <chr>    
#> 1 cura… DT_NSO_0… pxweb   GDP … National … mill… verified_p… year      Mongolia…
#> # ℹ 10 more variables: geography_dimension <chr>, time_dimension <chr>,
#> #   verified_at <chr>, source_url <chr>, caveats <chr>, aliases <list>,
#> #   selections <list>, queryable <lgl>, template_available <lgl>,
#> #   quality_flags <chr>
nso_indicators("population")
#> # A tibble: 1 × 19
#>   id    source_id backend name  definition unit  unit_status frequency geography
#>   <chr> <chr>     <chr>   <chr> <chr>      <chr> <chr>       <chr>     <chr>    
#> 1 cura… DT_NSO_0… pxweb   Resi… Resident … pers… count_from… year      National…
#> # ℹ 10 more variables: geography_dimension <chr>, time_dimension <chr>,
#> #   verified_at <chr>, source_url <chr>, caveats <chr>, aliases <list>,
#> #   selections <list>, queryable <lgl>, template_available <lgl>,
#> #   quality_flags <chr>