Package: flexurba 0.2.3

flexurba: Construct Flexible Urban Delineations

Enables the construction of flexible urban delineations that can be tailored to specific applications or research questions, see Van Migerode et al. (2024) <doi:10.1177/23998083241262545> and Van Migerode et al. (2025) <doi:10.5281/zenodo.15173220>. Originally developed to flexibly reconstruct the Degree of Urbanisation classification of cities, towns and rural areas developed by Dijkstra et al. (2021) <doi:10.1016/j.jue.2020.103312>. Now it also support a broader range of delineation approaches, using multiple datasets – including population, built-up area, and night-time light grids – and different thresholding methods.

Authors:Céline Van Migerode [aut, cre], Ate Poorthuis [aut], Ben Derudder [aut], KU Leuven [cph], FWO [fnd]

flexurba_0.2.3.tar.gz
flexurba_0.2.3.zip(r-4.7)flexurba_0.2.3.zip(r-4.6)flexurba_0.2.3.zip(r-4.5)
flexurba_0.2.3.tgz(r-4.6-x86_64)flexurba_0.2.3.tgz(r-4.6-arm64)flexurba_0.2.3.tgz(r-4.5-x86_64)flexurba_0.2.3.tgz(r-4.5-arm64)
flexurba_0.2.3.tar.gz(r-4.7-arm64)flexurba_0.2.3.tar.gz(r-4.7-x86_64)flexurba_0.2.3.tar.gz(r-4.6-arm64)flexurba_0.2.3.tar.gz(r-4.6-x86_64)
flexurba_0.2.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
flexurba/json (API)

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

Bug tracker:https://github.com/cvmigero/flexurba/issues

Pkgdown/docs site:https://flexurba-spatial-networks-lab-research-projects--e74426d1c66ecc.pages.gitlab.kuleuven.be

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

citydelineationurbanisationcpp

5.37 score 9 stars 13 scripts 185 downloads 37 exports 66 dependencies

Last updated from:f48a0e0d27. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK248
linux-devel-x86_64OK304
source / vignettesOK251
linux-release-arm64OK237
linux-release-x86_64OK267
macos-release-arm64OK219
macos-release-x86_64OK468
macos-oldrel-arm64OK344
macos-oldrel-x86_64OK538
windows-develOK287
windows-releaseOK288
windows-oldrelOK254
wasm-releaseOK145

Exports:%>%apply_majority_ruleapply_thresholdclassify_gridclassify_grid_ruralclassify_grid_urban_centresclassify_grid_urban_clustersclassify_grid_waterclassify_unitsconvert_regions_to_gridcrop_GHSLdataDoU_classify_gridDoU_classify_grid_ruralDoU_classify_grid_urban_centresDoU_classify_grid_urban_clustersDoU_classify_grid_waterDoU_classify_unitsDoU_get_grid_parametersDoU_get_optimal_builtupDoU_load_grid_data_belgiumDoU_plot_gridDoU_plot_unitsDoU_preprocess_gridDoU_preprocess_unitsdownload_GHSLdatafill_gapsget_adjacentget_clustersget_grid_parametersget_optimal_builtupget_patchesload_grid_data_belgiumload_proxies_belgiumplot_gridplot_unitspreprocess_gridpreprocess_units

Dependencies:abindBHclassclassIntclicpp11crayoncurldata.tableDBIdplyre1071exactextractrfarverfastmatchgenericsgeosggplot2ggspatialgluegtablehmsisobandjpegjsonliteKernSmoothlabelinglatticelibgeoslifecyclemagrittrMASSnabornngeopillarpkgconfigpngprettyunitsprogressproxypurrrR6rasterRColorBrewerRcppRcppEigenrlangrosms2S7scalessfspstringistringrterratibbletidyrtidyselecttidyterraunitsutf8vctrsviridisLitewithrwk

Release of flexurba 0.2.0
1. The provision of pre-processed proxy datasets | 2. Different thresholding approaches | 3. Renaming and updating the DEGURBA functions

Last update: 2026-01-12
Started: 2025-03-31

Introduction to flexurba
Degree of Urbanisation | Code example | 1. Download data products from the GHSL website | 2. Grid cell classification (stage 1) | 3. Spatial units classification (stage 2)

Last update: 2025-06-10
Started: 2025-03-31

Readme and manuals

Help Manual

Help pageTopics
Apply the majority rule algorithmapply_majority_rule
Identify urban areas by applying a threshold on grid cellsapply_threshold
Convert regions to a gridconvert_regions_to_grid
Crop GHSL data to the provided extentcrop_GHSLdata
Create the DEGURBA grid cell classificationDoU_classify_grid
Create the DEGURBA grid cell classification of rural cellsDoU_classify_grid_rural
Create the DEGURBA grid cell classification of urban centresDoU_classify_grid_urban_centres
Create the DEGURBA grid cell classification of urban clustersDoU_classify_grid_urban_clusters
Create the DEGURBA grid cell classification of water cellsDoU_classify_grid_water
Create the DEGURBA spatial units classificationDoU_classify_units
Get the parameters for the DEGURBA grid cell classificationDoU_get_grid_parameters
Get the optimal built-up area thresholdDoU_get_optimal_builtup
Load the grid data for Belgium to reconstruct DEGURBA classificationDoU_load_grid_data_belgium
Plot the grid cell classificationDoU_plot_grid
Plot the spatial units classificationDoU_plot_units
Preprocess the data for the DEGURBA grid cell classificationDoU_preprocess_grid
Preprocess the data for the DEGURBA spatial units classificationDoU_preprocess_units
Download data products from the GHSL websitedownload_GHSLdata
Fill gaps in clusters of cellsfill_gaps
Identify adjacent cellsget_adjacent
Identify clusters of cells that meet the criteriaget_clusters
Detect patches of cellsget_patches
A dataframe with existing GHSL tilesGHSL_tiles
Division of GHSL tiles in 9 regionsGHSL_tiles_per_region
Load the data for three urban proxies for Belgiumload_proxies_belgium
Spatial units of Belgiumunits_belgium