Skip to contents

Creates a pxweb query object from either a list with named values, a json query file or json query string. See examples below.

Usage

pxweb_query(x)

# S3 method for character
pxweb_query(x)

# S3 method for json
pxweb_query(x)

# S3 method for pxweb_query
pxweb_query(x)

# S3 method for list
pxweb_query(x)

# S3 method for response
pxweb_query(x)

# S3 method for pxweb_explorer
pxweb_query(x)

Arguments

x

an object to cast as a pxweb_query object.

Examples

dims <- list(
  Alue = c("*"),
  "Asuntokunnan koko" = c("*"),
  Talotyyppi = c("S"),
  Vuosi = c("*")
)
pxq1 <- pxweb_query(dims)

json_query <- file.path(
  system.file(package = "pxweb"),
  "extdata", "examples", "json_query_example.json"
)
pxq2 <- pxweb_query(json_query)