Package: flowcluster 0.2.1.9000
flowcluster: Cluster Origin-Destination Flow Data
Provides functionality for clustering origin-destination (OD) pairs, representing desire lines (or flows). This includes creating distance matrices between OD pairs and passing distance matrices to a clustering algorithm. See the academic paper Tao and Thill (2016) <doi:10.1111/gean.12100> for more details on spatial clustering of flows. See the paper on delineating demand-responsive operating areas by Mahfouz et al. (2025) <doi:10.1016/j.urbmob.2025.100135> for an example of how this package can be used to cluster flows for applied transportation research.
Authors:
flowcluster_0.2.1.9000.tar.gz
flowcluster_0.2.1.9000.zip(r-4.7)flowcluster_0.2.1.9000.zip(r-4.6)flowcluster_0.2.1.9000.zip(r-4.5)
flowcluster_0.2.1.9000.tgz(r-4.6-any)flowcluster_0.2.1.9000.tgz(r-4.5-any)
flowcluster_0.2.1.9000.tar.gz(r-4.7-any)flowcluster_0.2.1.9000.tar.gz(r-4.6-any)
flowcluster_0.2.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
flowcluster/json (API)
| # Install 'flowcluster' in R: |
| install.packages('flowcluster', repos = c('https://hussein-mahfouz.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hussein-mahfouz/flowcluster/issues
Pkgdown/docs site:https://hussein-mahfouz.github.io
- flows_leeds - Example flow data for Leeds. It is from the 2021 census, and it contains all Origin - Destination flows at the MSOA level. For more info on census flow data, see the ONS documentation See data-raw/flows_leeds.R for how this data was created.
Last updated from:a7467fff31. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 143 | ||
| source / vignettes | OK | 335 | ||
| linux-release-x86_64 | OK | 146 | ||
| macos-release-arm64 | OK | 160 | ||
| macos-oldrel-arm64 | OK | 173 | ||
| windows-devel | OK | 151 | ||
| windows-release | OK | 107 | ||
| windows-oldrel | OK | 98 | ||
| wasm-release | OK | 146 |
Exports:add_flow_lengthadd_xyuvaggregate_clustered_flowscluster_flows_dbscandbscan_sensitivitydistance_matrixfilter_by_lengthflow_distanceweight_vector
Dependencies:classclassIntclicpp11DBIdbscandplyre1071genericsglueKernSmoothlifecyclelwgeommagrittrMASSpillarpkgconfigproxypurrrR6Rcpprlangs2sfstringistringrtibbletidyrtidyselectunitsutf8vctrswithrwk
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Add Length Column to Flow Data | add_flow_length |
| Add Start/End Coordinates & Flow IDs | add_xyuv |
| Aggregate clustered OD flows into representative lines | aggregate_clustered_flows |
| Cluster Flows using DBSCAN | cluster_flows_dbscan |
| Sensitivity analysis of DBSCAN parameters for flow clustering. | dbscan_sensitivity |
| Convert Long-Format Distance Tibble to Matrix | distance_matrix |
| Filter Flows by Length | filter_by_length |
| Calculate Flow Distance and Dissimilarity | flow_distance |
| Example flow data for Leeds. It is from the 2021 census, and it contains all Origin - Destination flows at the MSOA level. For more info on census flow data, see the ONS documentation See data-raw/flows_leeds.R for how this data was created. | flows_leeds |
| Generate Weight Vector from Flows | weight_vector |
