Mainly used as a supporting function for get_values but can also
be used to create a working URL to paste in your web browser.
compose_data_query(
kpi = NULL,
municipality = NULL,
period = NULL,
ou = NULL,
unit_type = "municipality",
page = NA,
per_page = NA,
version = "v2"
)A string containing a URL to the Kolada REST API.
What kpis should be fetched? Can be a single name or a vector of names.
For which municipalities should data be fetched? Can be a single name or a vector of names.
For what years should data be fetched? Can be one or more four-digit integers or character strings.
(Optional) for what Operating Units should data be fetched? Only
available for certain KPIs. Only used if unit_type is set to "ou".
One of "municipality" or "ou". Whether to
fetch data for Municipalities or Organizational Units.
Units. Defaults to "municipality".
What page to fetch. Used mainly in large queries. Fetches a page using the value of "per_page" as pagination delimiter.
Number of results per page.
Version of the API. Currently only "v2" is supported.