pxweb_split_query: Split query in optimal sub-queries

View source: R/pxweb_split_query.R

pxweb_split_queryR Documentation

Split query in optimal sub-queries

Description

Split query in optimal sub-queries

Usage

pxweb_split_query(pxq, px, pxmd)

Arguments

pxq

a pxweb_query object.

px

a pxweb object.

pxmd

a pxweb_metadata object.

Details

Computes (brute-force) the optimal split of a query to match the api maximum value limit. It also take into account that time variables and content variables should not be split. Also variables with filter "top" should not be split, since the top filter does not supply the individual levels, just a number. This can probably be improved further.

Value

a list with pxweb_query objects.


pxweb documentation built on May 29, 2024, 2:28 a.m.