Learn R Programming

odns (version 1.0.2)

all_resources: Provides an overview of all resources available from <opendata.nhs.scot>.

Description

Provides an overview of all resources available from <opendata.nhs.scot>, with the option to limit results based on both package and resource names. The returned data.frame can be used to look-up package and resource ids and is useful for exploring the available data sets.

Usage

all_resources(package_contains = NULL, resource_contains = NULL)

Value

a data.frame containing details of all available packages and resources, or those containing the string specified in the package_contains and resource_contains arguments.

Arguments

package_contains

a character string containing an expression to be used as search criteria against the packages 'title' field.

resource_contains

a character string containing a regular expression to be matched against available resource names. If a character vector > length 1 is supplied, the first element is used.

Examples

Run this code
if (FALSE) {
all_resources()
all_resources(package_contains = "standard-populations")
all_resources(
  package_contains = "standard-populations", resource_contains = "European"
)
}

Run the code above in your browser using DataLab