Package: arear 0.1.1

Robert Challen

arear: Geospatial Convenience Functions and a Supply Demand Catchment Area Generator

Geospatial function collection from the COVID-19 pandemic. The main focus of this was integrating geospatial demographic, hospital capacity and COVID data from England, Scotland, Wales and Northern Ireland, all of which were available on different sites and methods. The UK has a wide range of administrative geographic boundaries for different purposes and moving from different scales and resolutions proved necessary. As the geospatial operations are quite time consuming but don't need to be repeated the ability to cache results of geospatial transformations is useful and embedded into these functions.

Authors:Robert Challen [aut, cre]

arear_0.1.1.tar.gz
arear_0.1.1.zip(r-4.5)arear_0.1.1.zip(r-4.4)arear_0.1.1.zip(r-4.3)
arear_0.1.1.tgz(r-4.4-any)arear_0.1.1.tgz(r-4.3-any)
arear_0.1.1.tar.gz(r-4.5-noble)arear_0.1.1.tar.gz(r-4.4-noble)
arear_0.1.1.tgz(r-4.4-emscripten)arear_0.1.1.tgz(r-4.3-emscripten)
arear.pdf |arear.html
arear/json (API)

# Install 'arear' in R:
install.packages('arear', repos = c('https://terminological.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/terminological/arear/issues

Datasets:
  • CA19 - Map data: CA19
  • CCG20 - Map data: CCG20
  • CTRY19 - Map data: CTRY19
  • CTYUA19 - Map data: CTYUA19
  • DZ11 - Map data: DZ11
  • GBR_ISO3166_2 - Map data: GBR_ISO3166_2
  • GBR_ISO3166_3 - Map data: GBR_ISO3166_3
  • GOOGLE_MOBILITY - Map data: GOOGLE_MOBILITY
  • HB19 - Map data: HB19
  • LAD19 - Map data: LAD19
  • LAD20 - Map data: LAD20
  • LGD12 - Map data: LGD12
  • LHB19 - Map data: LHB19
  • LSOA11 - Map data: LSOA11
  • MSOA11 - Map data: MSOA11
  • NHSER20 - Map data: NHSER20
  • OUTCODE - Map data: OUTCODE
  • PHEC16 - Map data: PHEC16
  • WD11 - Map data: WD11
  • WD19 - Map data: WD19
  • apiTrusts - NHS trust admissions data from the legacy COVID api from 2021
  • londonShape - An outline of the London NHSER region for use as a mask
  • mapsources - Locations of UK and international shapefiles relevant to COVID
  • surgecapacity - Locations of UK general medical hospitals in mid march 2020 with estimates of beds available and maximal surge capacity HDU beds
  • testdata - A list of regular lattice SF polygons used for testing purposes
  • uk2019adultpopulation - Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Ireland
  • uk2019retiredpopulation - Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Ireland
  • ukconnections - Locations of UK bridge or ferry route start and end points

On CRAN:

22 exports 4 stars 0.61 score 108 dependencies 4 scripts

Last updated 5 months agofrom:93077a49f8 (on 0.1.1). Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 21 2024
R-4.5-winWARNINGAug 21 2024
R-4.5-linuxWARNINGAug 21 2024
R-4.4-winWARNINGAug 21 2024
R-4.4-macWARNINGAug 21 2024
R-4.3-winWARNINGAug 21 2024
R-4.3-macWARNINGAug 21 2024

Exports::=%>%cache_clearcatchmentcreateCatchmentcreateNeighbourNetworkdownloadGeojsondownloadMapgetContainedIngetIntersectiongetMapinterpolateByArealistStandardMapsmapThemeplotLabelledMappopoutAreapreviewsaveShapefilestandardiseMapuk2019demographicsuk2019demographicsmapukcovidmap

Dependencies:askpassbase64encbitbit64bootbslibcachemclassclassIntclicliprcolorspacecpp11crayoncrosstalkcurlDBIdeldirdigestdplyre1071evaluatefansifarverfastmapfontawesomefsgenericsgeojsonsfgeometriesggplot2ggrepelgluegridExtragtableherehighrhmshtmltoolshtmlwidgetshttrisobandjquerylibjsonifyjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecyclelwgeommagrittrMASSMatrixmemoisemgcvmimemunsellnlmeopensslpatchworkpillarpkgconfigpngprettyunitsprogressproxypurrrR6rapidjsonrrappdirsrasterRColorBrewerRcppreadrrlangrmapshaperrmarkdownrprojroots2sassscalessfsfheadersspspDataspdepstringistringrsysterratibbletidyselecttinytextzdbunitsutf8V8vctrsviridisLitevroomwithrwkxfunyaml

Getting Started with Arear

Rendered fromarear.Rmdusingknitr::rmarkdownon Aug 21 2024.

Last update: 2024-04-23
Started: 2022-05-10

Readme and manuals

Help Manual

Help pageTopics
NHS trust admissions data from the legacy COVID api from 2021apiTrusts
Map data: CA19CA19
Clear data from the passthrough cache for complex or long running operationscache_clear
Create a catchment area map and cache the resultcatchment
Map data: CCG20CCG20
Create a catchment area mapcreateCatchment
create a neighbourhood network from touching regions in a shapefile, with additional capability to connect non touching areas where there may be bridges etc.createNeighbourNetwork
Map data: CTRY19CTRY19
Map data: CTYUA19CTYUA19
Download a geojson url, standardise it and cache the resultdownloadGeojson
Download a map, unpack it, and rename columns.downloadMap
Map data: DZ11DZ11
Map data: GBR_ISO3166_2GBR_ISO3166_2
Map data: GBR_ISO3166_3GBR_ISO3166_3
Generate a mapping representing how the input points fit into the output shapegetContainedIn
Intersection of 2 shapesgetIntersection
Gets maps for which the metadata is known.getMap
Map data: GOOGLE_MOBILITYGOOGLE_MOBILITY
Map data: HB19HB19
interpolate a variable from one set of shapes to anotherinterpolateByArea
Map data: LAD19LAD19
Map data: LAD20LAD20
Map data: LGD12LGD12
Map data: LHB19LHB19
List the standard maps available to downloadlistStandardMaps
An outline of the London NHSER region for use as a masklondonShape
Map data: LSOA11LSOA11
Locations of UK and international shapefiles relevant to COVIDmapsources
A map theme to remove extraneous cluttermapTheme
Map data: MSOA11MSOA11
Map data: NHSER20NHSER20
Map data: OUTCODEOUTCODE
Map data: PHEC16PHEC16
Create a map, usually as a chloropleth, with selected areas labelled.plotLabelledMap
Create a new map with a popout panel to show areas where there is a high density of people for example.popoutArea
Preview a map with POI using leafletpreview
save a shapefile to disk in the current working directorysaveShapefile
Standardise maps to a minimal set of attributes with consistent naming with code, name and codeType columns and an optional altCode columnstandardiseMap
Locations of UK general medical hospitals in mid march 2020 with estimates of beds available and maximal surge capacity HDU bedssurgecapacity
A list of regular lattice SF polygons used for testing purposestestdata
Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Irelanduk2019adultpopulation
UK small area single year of age population estimates from 2019uk2019demographics
Shape file related to the mid year 2019 small area estimates for England, Wales, Scotland, and Northern Irelanduk2019demographicsmap
Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Irelanduk2019retiredpopulation
Locations of UK bridge or ferry route start and end pointsukconnections
Shape file related to the detailed level for PHE coronavirus statistical reporting in England, Wales, Scotland, and Northern Ireland on the coronavirus.gov.uk tracker. The legacy is the level at which detailed data was reported in the first wave, prior to the API and was aggregated by https://github.com/tomwhite/covid-19-uk-dataukcovidmap
Map data: WD11WD11
Map data: WD19WD19