knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The pxweb R package provides tools to interface with the PX-WEB API for data search, download, manipulation and visualization purposes. This is used by a large number of statistical authorities world-wide. It offers methods to utilize information about the data hierarchy stored behind the PXWEB API.
Many API services are still in their early stages, and data quality is sometimes compromised. Issue reports are welcome.
The easiest way to use pxweb is to simply install it from CRAN:
install.packages("pxweb")
Alternatively, you can get the latest stable development version:
library(remotes) remotes::install_github("ropengov/pxweb")
In some cases, the organization requires manual proxy settings. This can be set as follows:
library(remotes) library(httr) set_config( use_proxy("64.251.21.73", 8080) # Note! This is an example ) remotes::install_github("ropengov/pxweb")
# This resets the config when the README is tested httr::reset_config()
For examples, check the tutorial/vignette.
See TROUBLESHOOTING.md or open an issue.
You are welcome to contact us:
sessionInfo()
and packageVersion("pxweb")
)Kindly cite this work as follows: Måns Magnusson, Markus Kainu, Janne Huovari, and Leo Lahti. Retrieval and analysis of PC Axis data with the pxweb package. R package version r sessionInfo()$otherPkgs$pxweb$Version
. URL: https://ropengov.github.io/pxweb/
We are grateful to all contributors! This project is part of rOpenGov.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.