Learn R Programming

dfeR (version 1.0.1)

fetch_wards: Fetch wards

Description

Fetch wards

Usage

fetch_wards(year = "All", countries = "All")

Value

data frame of unique location names and codes

Arguments

year

year to filter the locations to, default is "All", options of 2017, 2019, 2020, 2021, 2022", 2023, 2024

countries

vector of desired countries to filter the locations to, default is "All", or can be a vector with options of "England", "Scotland", "Wales" or "Northern Ireland"

See Also

Other fetch_locations: fetch_countries(), fetch_lads(), fetch_las(), fetch_regions()

Examples

Run this code

# Using head() to show only top 5 rows for examples
head(fetch_wards())

head(fetch_pcons())

head(fetch_pcons(2023))

head(fetch_pcons(countries = "Scotland"))

head(fetch_pcons(year = 2023, countries = c("England", "Wales")))

fetch_lads(2024, "Wales")

fetch_las(2022, "Northern Ireland")

# The following have no specific years available and return all values
fetch_regions()
fetch_countries()

Run the code above in your browser using DataLab