get_dataset | R Documentation |
Get Open Data resources from a dataset
get_dataset(
dataset_name,
max_resources = NULL,
rows = NULL,
row_filters = NULL,
col_select = NULL,
include_context = FALSE
)
dataset_name |
name of the dataset as found on NHS Open Data platform |
max_resources |
(optional) the maximum number of resources to return, use for testing code, it will return the n latest resources |
rows |
(optional) specify the max number of rows to return for each resource. |
row_filters |
(optional) a named list or vector that specifies values of columns/fields to keep. e.g. list(Date = 20220216, Sex = "Female"). |
col_select |
(optional) a character vector containing the names of desired columns/fields. e.g. c("Date", "Sex"). |
include_context |
(optional) If |
a tibble with the data
get_resource()
for downloading a single resource
from a dataset.
get_dataset("gp-practice-populations",
max_resources = 2, rows = 10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.