all_resources: Provides an overview of all resources available from...

View source: R/all_resources.R

all_resourcesR Documentation

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)

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.

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.

Examples

## Not run: 
all_resources()
all_resources(package_contains = "standard-populations")
all_resources(
  package_contains = "standard-populations", resource_contains = "European"
)

## End(Not run)


odns documentation built on Nov. 10, 2022, 5:56 p.m.