Access and Use Spain Government's API


[Up] [Top]

Documentation for package ‘dataesgobr’ version 1.0.0

Help Pages

check_csv_file Check if the csv file has a correct format
check_file Check if the dataset has a correct format
confirm_action Generates an interface in R console with a question and options to answer it
datos Format data on dataesgobr
download_data Download files asociate with dataesgobr object
filter_by Filter data.frame using params passed
filter_by_description Filter data.frame by description using q param
filter_by_keywords Filter data.frame by keywords using keywords param
filter_by_title Filter data.frame by title using q param
get_all_keywords Obtain keywords in data.frame with the number of ocurrences
get_available_formats Generate a data.frame that contains the type of elements, information and repetitions for each one
get_extension Get the extension that matches with the format passed like parameter
get_format Get the format that matches with the extension passed like parameter
get_formats Generate a list that contains the type of elements and repetitions for each one
get_id This method extracts the ID from an URL
get_name Extract the name of the file in the URL
get_provinces_from_api This method send a request to datos.gob.es and return a data.frame that contains the provinces in the catalog
get_publisher Get the publisher of the dataset
get_publishers_from_api This method send a request to datos.gob.es and return a data.frame that contains the publishers in the catalog
get_spatials_from_api This method send a request to datos.gob.es and return a data.frame that contains the spatials available in the catalog
get_symbol This function detects the delim from a csv file
get_themes_from_api This method send a request to datos.gob.es and return a data.frame that contains the themes available in the catalog
graphic_data Draw a plot using the pararameters passed
graphic_keywords Represent keywords in a plot
load_data Load data from a file
load_dataset Load dataset from a data.frame
make_url Loads the file url_params and make urls to extract information from the API
runGUI Launches the web-based GUI for dataesgobr
search_by Creates a data.frame containing datasets from datos.gob.es that matches the parameters passed
search_by_id Creates an object of the class dataesgobr that matches with the dataset id
search_by_publisher Creates a data.frame containing datasets from datos.gob.es
search_by_spatial Creates a data.frame containing datasets from datos.gob.es
search_by_theme Creates a data.frame containing datasets from datos.gob.es
search_by_title Creates a data.frame containing datasets from datos.gob.es