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')
For examples, check the tutorial/vignette.
See TROUBLESHOOTING.md or open an issue.
You are welcome to contact us:
- Submit suggestions and bug
reports (provide the
output of
sessionInfo()
andpackageVersion("pxweb")
) - Send a pull request
- Star us on the Github page
- Join the discussion in Gitter
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 . URL: https://ropengov.github.io/pxweb/
We are grateful to all contributors! This project is part of rOpenGov.