Build a PXWeb query from a reviewed statistical concept
Source:R/indicators.R
nso_indicator_query.RdBuild a PXWeb query from a reviewed statistical concept
Arguments
- id
Reviewed curated concept or alias; see
nso_indicator().- periods
Optional character vector of period labels, not positional PXWeb time codes.
NULLselects all source periods.- geography
Optional character vector of source geography codes for concepts with a geography dimension.
NULLretains the reviewed national total. Codes use the PXWeb scheme and are validated when the query is fetched.
Value
An nso_query() object ready for nso_fetch(). Construction is
offline; fetching validates selections against current table metadata.
Metadata and caveats can be inspected with nso_indicator().
Examples
nso_indicator_query("gdp_current", periods = c("2023", "2024"))
#> <nso_query>
#> tbl_id : DT_NSO_0500_001V1
#> selections: 3 dimensions
#> - Статистик үзүүлэлт: 0
#> - Эдийн засгийн салбар: 0
#> - Жил: 2023, 2024
nso_indicator_query("resident_population", periods = "2024")
#> <nso_query>
#> tbl_id : DT_NSO_0300_068V2
#> selections: 3 dimensions
#> - Хүйс: 0
#> - Бүс: 0
#> - Он: 2024