openSafely_listR: openSafely_listR function

Description Usage Arguments Value Examples

View source: R/openSafely_listR.R

Description

This function uses the tableR parent function to return a table of elements, specifically from the OpenSafely Code List https://www.opencodelists.org/

Usage

1
openSafely_listR(list_name, version = "", ...)

Arguments

list_name

The code list ID from https://www.opencodelists.org/ for which to return the National table of elements, for example "opensafely/ace-inhibitor-medications"

version

The version of the code list if not the most recent

...

Function forwarding to parent function to pass additional arguments to function (e.g. title, add_zero_prefix)

Value

A tibble (class data.frame) output from the results of the web scrape

Examples

1
2
3
4
openSafely_listR("opensafely/ace-inhibitor-medications")
#Pull back current list
openSafely_listR("opensafely/ace-inhibitor-medications", "2020-05-19")
#Pull back list with date

NHSDataDictionaRy documentation built on July 9, 2021, 5:08 p.m.