Learn R Programming

statswalesr (version 0.2.0)

statswales_search: Search StatsWales datasets

Description

statswales_search returns a dataframe of dataset titles and IDs from StatsWales, based on the user's text input.

Usage

statswales_search(search_text, language = "english")

Arguments

search_text

A vector of search terms.

language

A string. Returns the metadata in either English ('english') or Welsh ('welsh'). The default is English.

Value

A dataframe of StatsWales dataset titles and IDs.

Examples

Run this code
# NOT RUN {
crops_datasets <- statswales_search("*crops*")



# }

Run the code above in your browser using DataLab