pxweb {pxweb} | R Documentation |
S3 constructor for pxweb
api object.
Description
The pxwebapi object contain all information to do calls to the pxweb api and keep count of the number of calls. The object is constructed The object will also be cached in R temp folder to minimize calls to api. All urls should be passed through the constructor to set up the pxweb api config.
Garantuees: The base_url has been pinged The sub_path has been checked The config has been captured from the API The url has been checked to be a pxweb api (through config)
Usage
pxweb(url)
is.pxweb(x)
## S3 method for class 'pxweb'
print(x, ...)
Arguments
url |
an url to a pxweb api including language and version of the api. See examples. |
x |
an an object to test if it is a |
... |
further arguments supplied to |
Value
A pxweb
object.
Examples
## Not run:
pxapi_1 <-
pxweb("https://api.scb.se/OV0104/v1/doris/sv/ssd/START/ME/ME0104/ME0104C/ME0104T24")
pxapi_2 <-
pxweb(url = "https://api.scb.se/OV0104/v1/doris/sv")
## End(Not run)
[Package pxweb version 0.17.0 Index]