pxweb_validate_query_with_metadata: Validate a 'pxweb_query' with a 'pxweb_metadata' object

Description Usage Arguments Details Examples

View source: R/pxweb_query.R

Description

Validate a pxweb_query with a pxweb_metadata object

Usage

1

Arguments

pxq

a pxweb_query object.

pxmd

a pxweb_metadata object.

Details

Validate a query with a metadata object to asses that the query can be used to query the table.

Examples

1
2
3
4
5
6
7
8
## Not run: 
url <- "http://api.scb.se/OV0104/v1/doris/sv/ssd/BE/BE0101/BE0101A/BefolkningNy"
json_query <- file.path(system.file(package = "pxweb"), 
                        "extdata", "examples", "json_query_example.json")
pxq <- pxweb_query(json_query)
pxweb_validate_query_with_metadata(pxq, pxweb_get(url))

## End(Not run)

pxweb documentation built on Oct. 10, 2021, 1:06 a.m.