Package: arear 0.4.0

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.4.0.tar.gz
arear_0.4.0.zip(r-4.7)arear_0.4.0.zip(r-4.6)arear_0.4.0.zip(r-4.5)
arear_0.4.0.tgz(r-4.6-any)arear_0.4.0.tgz(r-4.5-any)
arear_0.4.0.tar.gz(r-4.7-any)arear_0.4.0.tar.gz(r-4.6-any)
arear_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
arear/json (API)

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

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

Pkgdown/docs site:https://terminological.github.io

Datasets:
  • 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 - Hospital surge capacity in COVID
  • 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:

Conda:

3.60 score 4 stars 4 scripts 26 exports 107 dependencies

Last updated from:7848925252 (on 0.4.0). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK220
source / vignettesOK349
linux-release-x86_64OK212
macos-release-arm64OK122
macos-oldrel-arm64OK119
windows-develOK178
windows-releaseOK221
windows-oldrelOK151
wasm-releaseOK173

Exports::=%>%arcgisServiceInfocache_clearcatchmentcreateCatchmentcreateNeighbourNetworkdownloadGeojsondownloadMapfeatureServerInfofeatureServerLayerInfofeatureServerLayerQuerygetContainedIngetIntersectiongetMapinterpolateByArealistStandardMapsmapThemeplotLabelledMappopoutAreapreviewsaveShapefilestandardiseMapuk2019demographicsuk2019demographicsmapukcovidmap

Dependencies:askpassbase64encbitbit64bootbslibcachemcellrangerclassclassIntclicliprcpp11crayoncrosstalkcurlDBIdeldirdigestdplyre1071evaluatefarverfastmapfontawesomefsgenericsgeojsonsfgeometriesggplot2ggrepelgluegridExtragtablehighrhmshtmltoolshtmlwidgetshttrisobandjquerylibjsonifyjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecyclelwgeommagrittrMASSmemoisemimeopensslpatchworkpillarpinspkgconfigpngprettyunitsprogressproxypurrrR6rapidjsonrrappdirsrasterRColorBrewerRcppreadrreadxlrematchrlangrmapshaperrmarkdowns2S7sassscalessfsfheadersspspDataspdepstringistringrsysterratibbletidyrtidyselecttinytextzdbunitsutf8V8vctrsviridisLitevroomwhiskerwithrwkxfunyaml

Getting Started with Arear

Rendered fromarear.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2025-09-20
Started: 2022-05-10

Readme and manuals

Help Manual

Help pageTopics
NHS trust admissions data from the legacy COVID API from 2021apiTrusts
Get feature service information from an arcgis rest servicearcgisServiceInfo
Clear data from the passthrough cache for complex or long running operationscache_clear
Create and cache a catchment area mapcatchment
Create a catchment area mapcreateCatchment
Create a neighbourhood network from touching regions in a mapcreateNeighbourNetwork
Download a geojson url, optionally simplifies and cache the resultdownloadGeojson
Download a shape file mapdownloadMap
Get layer information from a feature servicefeatureServerInfo
Get field information from a feature service layer.featureServerLayerInfo
Execute and cache a query on a Feature ServerfeatureServerLayerQuery
Generate a mapping table between 2 `sf` dataframes.getContainedIn
Intersection of 2 shapesgetIntersection
Gets maps for which the metadata is known.getMap
interpolate a variable from one set of shapes to anotherinterpolateByArea
List the standard maps available to downloadlistStandardMaps
An outline of the London NHSER region for use as a masklondonShape
Locations of UK and international shapefiles relevant to COVIDmapsources
A map theme to remove extraneous cluttermapTheme
Create a map, usually as a chloropleth, with selected areas labelled.plotLabelledMap
Create a magnified pop-out panel of a mappopoutArea
Preview a map with POI using leafletpreview
Save a `sf` as a shapefile to disksaveShapefile
Standardise mapsstandardiseMap
Hospital surge capacity in COVIDsurgecapacity
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
Small area demographics mapuk2019demographicsmap
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
COVID reporting mapukcovidmap