Description Usage Arguments Value Note Author(s) Examples
View source: R/abs-api-functions.R
This function finds datasets or dimensions within a specific that match a specified regular expresion and returns matching results.
1 2 3 4 5 6 7 |
pattern |
Character string or regular expression to be matched. |
dataset |
Character vector of ABS.Stat dataset codes. These codes correspond to the
|
ignore.case |
Case senstive pattern match or not. |
code_only |
If FALSE (default), all column/fields are returned. If TRUE, only the dataset identifier or indicator code are returned. |
update_cache |
Logical expression, if FALSE (default), use the cached list of available ABS.Stat datasets, if TRUE, update the list of available datasets. |
A data frame with datasets and data items that match the search pattern.
With acknowledgements to wb_search
function.
David Mitchell <david.pk.mitchell@gmail.com>
1 2 3 4 5 6 7 8 | ## ABS dataset search
x <- abs_search(pattern = "consumer price index")
x <- abs_search(pattern = "census")
x <- abs_search(pattern = "labour force")
## ABS indicator search
x <- abs_search(pattern = "all groups", dataset="CPI")
x <- abs_search(pattern = c("all groups", "capital cities"), dataset="CPI")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.