# Fetch everything from a data set
dfeR::get_ons_api_data(data_id = "LAD23_RGN23_EN_LU")
# Specify the columns you want
dfeR::get_ons_api_data(
"RGN_DEC_2023_EN_NC",
query_params = list(
where = "1=1",
outFields = "RGN23CD,RGN23NM",
outSR = 4326,
f = "json"
)
)
Run the code above in your browser using DataLab