View source: R/statswales_search.R
| statswales_search | R Documentation |
Full-text search across dataset titles and summaries. Returns results ranked by relevance.
statswales_search(
keywords,
lang = "en-gb",
page_number = 1,
page_size = 100,
mode = "basic"
)
keywords |
Search query string. |
lang |
Language for returned text. One of |
page_number |
Page number to return. Default |
page_size |
Number of results per page. Default |
mode |
Search algorithm. One of |
A data frame with columns id, title, summary,
first_published_at, last_updated_at, and archived_at. Timestamp
columns are POSIXct (UTC). The fts and fts_simple modes also return
rank, match_title, and match_summary. Returns NULL if the request
fails.
## Not run:
results <- statswales_search("hospital")
results_cy <- statswales_search("ysbyty", lang = "cy-gb")
results_fuzzy <- statswales_search("transprt", mode = "fuzzy")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.