| pxweb_query | R Documentation | 
Creates a pxweb query object from either a list with named values, a json query file or json query string. See examples below.
pxweb_query(x)
## S3 method for class 'character'
pxweb_query(x)
## S3 method for class 'json'
pxweb_query(x)
## S3 method for class 'pxweb_query'
pxweb_query(x)
## S3 method for class 'list'
pxweb_query(x)
## S3 method for class 'response'
pxweb_query(x)
## S3 method for class 'pxweb_explorer'
pxweb_query(x)
| x | an object to cast as a pxweb_query object. | 
pxweb_query_as_json, pxweb_query_as_rcode
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.