R Interface to the PX-Web/PC-Axis API


[Up] [Top]

Documentation for package ‘pxweb’ version 0.5.5

Help Pages

pxweb-package pxweb
api_catalogue Get the api catalogue
api_parameters Return options for database, version and language choices
api_timer Creates a timer that keeps track of how many calls that has been called during a time period depending on the api configuration. If there can't be another call the function pauses R to do the call.
base_url Return base URL to API
buildPath Build a path from character elements
calculate_data_dim The function calculates the dimension of a data object
calc_dim_type Calculates which dimensions that are used as row and col variables in data
checkForLevels Function to silently test for existence of metadata and return TRUE or FALSE based on the result of that test.
check_new_pxweb_apis Check and compare differences between remote and local api catalogue
choose_pxweb_api Choose an api from api_catalogue
choose_pxweb_database_url Calculate a specific database to get data from
clean_pxweb Clean raw data from PX-WEB
create_batch_list The function takes an url and a dims object and calculates if this needs to be downloaded in batches due to download limit restrictions in the pxweb api. If '*' is used it will get the numberof values for this dimension using a get_pxweb_metadata call.
deparseLevels Functions from sweSCB package that are not called anywhere (yet) but might be useful later Function to deparse an URL into its components.
download_pxweb Traverse node for query alternatives and download data.
findData.input Get input that is consistent with
getContent Get content from response
get_api_index Get index of which api has the name or teh alias
get_api_list Get the api catalogue from json file
get_api_list_remote Get the api catalogue from github
get_dim_size The function calculates the dimension of a query. That means the numberof categories for each variable downloaded
get_github_api_urls Get (hard coded) api catalogue github urls
get_pxweb_data Get data from a bottom node in PX-WEB API
get_pxweb_dims Get data dimensions form a bottom node in a PX-Web/PC-Axis API
get_pxweb_levels Get levels from API node
get_pxweb_metadata Get data
interactive_pxweb Find and download data interactively from PX-WEB API
print.api_parameters Print method for api_parameters.
pxweb pxweb
pxweb_api A Reference Class to represent an pxweb_api
pxweb_api-class A Reference Class to represent an pxweb_api
test_pxweb_api Test a full or a part of an pxweb api.
test_pxweb_api_get_data Download data for each bottom node in the pxweb api
test_pxweb_api_get_nodes Get the whole node tree from a given pxweb api
test_pxweb_api_get_node_metadata Get metadata from all bottom nodes identified with test_pxweb_api_get_nodes.
text_to_url Change text to url
update_pxweb_apis Download and update the PXWEB API catalogue
write_api_list Write api catalogue to json file