Learn R Programming

nomisdata (version 0.1.1)

fetch_nomis: Fetch Data from Nomis

Description

Main function to download data from Nomis datasets.

Usage

fetch_nomis(
  id,
  time = NULL,
  date = NULL,
  geography = NULL,
  sex = NULL,
  measures = NULL,
  exclude_missing = FALSE,
  select = NULL,
  ...,
  .progress = interactive()
)

Value

Tibble with requested data

Arguments

id

Dataset ID (required)

time

Time range using keywords or specific dates

date

Specific dates (alternative to time)

geography

Geography code(s)

sex

Sex/gender code(s)

measures

Measure code(s)

exclude_missing

Remove missing values

select

Column names to include

...

Additional dimension filters

.progress

Show progress bar for multi-part queries

Examples

Run this code
# \donttest{
fetch_nomis(
  "NM_1_1",
  time = "latest",
  geography = "TYPE499",
  measures = 20100,
  sex = 7
)

fetch_nomis(
  "NM_1_1",
  date = c("latest", "prevyear"),
  geography = c("2092957697", "2092957698"),
  measures = 20100
)
# }

Run the code above in your browser using DataLab