Search Open Data Scot Datasets
ods_search.Rd
This function will return metadata associated with datasets available on opendata.scot
Arguments
- search
A vector of search terms. Searches are performed on the title of the datasets and are case insensitive. If no search terms provided, metadata for all datasets will be returned.
- refresh
A boolean to download a fresh list of opendatascot datasets from opendata.scot. Default is FALSE, in which case a cached dataset will be used (except if first time using function). A message will appear if cached dataset is more than a week old.
Examples
all_datasets <- ods_search() # return ALL datasets
#> Note, the cached list of datasets from opendata.scot was last
#> downloaded on 2023-11-19
data <- ods_search(search = "bicycle") # search datasets
#> Note, the cached list of datasets from opendata.scot was last
#> downloaded on 2023-11-19
data <- ods_search(search = c("bicycle", "bins")) # multiple search terms
#> Note, the cached list of datasets from opendata.scot was last
#> downloaded on 2023-11-19