Wraps the CKAN tag_list action to list the tags applied to datasets. These
are the same tags shown on the portal website; you can filter datasets by a
tag with nhsbsa_package_search() (see vignette("nhsbsa")).
Arguments
- query
Character scalar. Restrict the results to tags containing this string.
- vocabulary_id
Character scalar. Restrict the results to tags in a particular CKAN tag vocabulary.
- .return_raw
Logical. If
TRUE, return the full parsed CKAN response envelope instead of the processed result. Defaults toFALSE.
See also
nhsbsa_package_search() to find datasets by tag.
Examples
# All tags
tags <- nhsbsa_tag_list()
length(tags)
#> [1] 1074
# Only tags containing a given string
nhsbsa_tag_list(query = "prescribing")
#> [1] "English Prescribing Data" "Prescribing"
#> [3] "Hypnotic Prescribing Data" "prescribing data"
#> [5] "Prison Prescribing" "prescribing"
#> [7] "Prescribing data" "secondary care prescribing"
#> [9] "Hospital Prescribing" "Dental prescribing"
#> [11] "Prescribing Data"
