No articles match
DuckDB and Parquet engines28 days ago
Introduction | Load the package | Equivalence test with 2024 data | Comparing record counts and fatal counts | Using waldo for deep comparison | Working with large datasets (1979-latest) | Caching the data as Parquet | Where Parquet files live | Converting CSVs to Parquet | Reading from the cache | Keep the cache up to date
Longitudinal Schema and Filename Evolution (1979–2025)28 days ago
Overview | 1. Hosting and File Naming Evolution | Package Handling | 2. Nomenclature: "Accident" to "Collision" | 3. The *_historic Column Split | Longitudinal Harmonization | 4. Severity Adjustments (CRASH System Introduction) | Practical Usage | 5. Emerging Vehicles and Variable Additions | 6. Schema Generation Pipeline
Introducing stats1928 days ago
Introduction | Functions | Download STATS19 data | Read STATS19 data | Crash data | Format STATS19 data | Casualties data | Vehicles data | Creating geographic crash data | Joining tables | Time series analysis | Longitudinal trends and severity adjustments | Further work | References
stats19: a package for road safety research28 days ago
Live Documentation & External Posts | Recent Developments: Modernised Architecture (v4.0.0 - v4.2.0) | 1. Unified Longitudinal Schema | 2. Zero-Warning, High-Precision Parsing | 3. Native DuckDB and Parquet Support | 4. Research Tools: Costs and Vehicle Cleaning | Introduction & Package History | Short history and affiliations | What is STATS19 anyway? | The road crash data in stats19 | Note | How stats19 works | Creating geographic crash data | The big picture: road safety | Conclusion | References
Training Resources for Road Safety Analysis with R28 days ago
Overview | Recommended Resources | 1. Reproducible Road Safety Research with R | 2. Geocomputation with R | 3. General R and Data Science | Getting Started with stats19
Get started4 months ago
Installation | Installation for DEM downloads | Functions | Elevation | Slope calculation | Plotting | Helper functions | Examples | Add elevation to linestrings or points | Calculate slope | Plot elevation profile | Working with segments | By vertex (native segments of the linestring) | By fixed length (using stplanr)
Verification of slopes4 months ago
Introduction | Case studies | Roads in the Netherlands | Comparison of DEM-derived and survey-grade Z values | DEM for eu: | Test it's installed: | Find location of aws cli from powershell (equivalent of which aws on Linux): | Get-Command aws | Select-Object -ExpandProperty Source | C:\Program Files\Amazon\AWSCLIV2\aws.exe | Now aws should work | Download DEM for Brussels 6 km from center | Calculate slopes with the slopes package: | Add elevation to cycle network segments | check the extents of both: | Calculate slopes for each segment | cycle_net_xyz$slope = slope_xyz(cycle_net_xyz, lonlat = TRUE, fun = slope_matrix_mean) | Convert to percentage: | Convert to factor with greater than 5 being "5+" | Drop z dimension | install cran version | Save with tmap | url of the file: | References
Benchmarking slopes calculation4 months ago
Performance
Make and model data in STATS191 years ago
Make and model data
Reproducing Reported road casualties in Great Britain: pedestrian factsheet1 years ago
1. Main findings | 2. Pedestrian traffic and reported casualties | 3. How far do pedestrians travel? | 4. Casualty rates per mile travelled | 5. Sex and age comparisons | 6. Which vehicles are involved in collisions with pedestrians? | 7. Time of day of collisions | 8. What type of road? | 9. Vehicle movement on the road
Visualising cycling potential with A/B Street1 years ago
Introduction | Installing and Loading Packages | Choosing a region | Fetching PCT Data | Data Cleaning and Transformation | Download OSM building data | Using Abstr to Generate Scenarios | Importing scenario files into A/B Street | Conclusions and next steps
Reproducing Montlake Eastside Seattle, US1 years ago
Introduction | Example | Load packages | Fetch Montlake Polygon | Parsing zones | Generate OD Matrix and zones table | Fetching OSM building data | Generate A/B Street scenarios using abstr | Importing scenario files into A/B Street
An introduction to slopes1 years ago
Introduction | Calculating slopes | Measures of route hilliness | Segments in a route: Cumulative slope | References
Example: gradients of a road network for a given city1 years ago
Extract the OSM network from geofabrik | Clean the road network | Filter the unconnected segments | Break the segments on vertices | Get slope values for each segment | Result: | Other examples
An introduction to spatial interaction models: from first principles2 years ago
What are SIMs? | Implementation in R | Validation | References
ClockBoard: a zoning system for urban analysis2 years ago
Published paper | Introduction | The ClockBoard zoning system | Annuli radii | Number of segments | ClockBoard zones for segmenting urban areas | Using the ClockBoard zoning system | The zonebuilder R package | The zonebuilder Rust crate | Interactive zonebuilder web application | Applications | Navigation and location | Exploring city scale data | Inter-city comparison of geographically variable phenomena | Discussion and conclusion | References
Researching vehicles involved in collisions with STATS19 data2 years ago
Vehicle level variables in the STATS19 datasets | Relationships between vehicle type and crash severity
Spatial interaction models with R2 years ago
Prerequisites | Input data | Preparing a SIM | An unconstrained SIM | A production constrained SIM | Training a SIM | References
stplanr: A Package for Transport Planning2 years ago
Note | Introduction | Package structure and functionality | Core functions and classes | Accessing and processing transport data | Creating geographic desire lines | Allocating flows to the transport network | Modelling travel catchment areas | Modelling and visualisation | Modelling mode choice | Models of travel behaviour | Visualisation | Future directions of travel | References
Merging route networks3 years ago
Target network preprocessing
An introduction to origin-destination data3 years ago
Introduction: what is OD data? | The importance of OD data | The od package | Representing origin-destination data | A minimal od dataset | OD data representing travel to work | Origin-destination pairs (long form) | Origin destination matrices | Inter and intra-zonal flows | Bidirectional aggregation | Desire lines | Non-matching IDs | Aggregating and disaggregating OD data | Further reading | References
Origin-destination data with stplanr3 years ago
Introduction: what is OD data? | The importance of OD data | An example OD dataset | Origin-destination pairs (long form) | Origin destination matrices | Inter and intra-zonal flows | Oneway lines | Desire lines | Non-matching IDs | A larger example: commuter trips in London | Plotting origin-destination data | Summaries by origin and destination | Further reading | Summary | References
Introducing stplanr3 years ago
Introduction | Installing stplanr | OD data to desire lines and routes | Converting OD data to desire lines with R | Motivations | Further resources | Contributing | References
Route networks with stplanr3 years ago
Introduction | Creating route networks from overlapping routes | Identifying route network groups | Routing on route networks | Adding new nodes | Other approaches
Cycling potential in UK cities3 years ago
Getting the region of interest | Getting cycling potential accross local authorities | Cycling mode share | Cycling potential nationwide | Considerations | Challenge
Estimating distance cycled per zone in England and Wales regions3 years ago
Prerequisites | Estimating distance cycled for a region based on 2011 census data | Comparing Regions | Using PCT models to visualize potential cycle uptake | Conclusions and next steps
Introducing the pct package3 years ago
Introduction | Why this package? | Installation | Get PCT data | Comparing downloaded data with the PCT web app | Getting Census data | Estimate cycling uptake | References
Reproducing cycling potential estimates in UK cities3 years ago
Prerequisites | Picking a study area | Part A) Choosing a region | Part A) Picking a Local Authority | Plotting Current Cycle Uptake | Plotting New Demand Based On PCT Models | Comparing Two Cities | Conclusions and next steps
International application of the PCT methods4 years ago
Introduction | Input data | Creating desire lines | Estimating cycling uptake | Routing | Next steps
Get started with abstr5 years ago
Getting started | Installing R | Installing A/B Street | Using abstr | Importing scenario files into A/B Street | Projects supporting abstr | Context
Multi-trip activity models5 years ago
Introduction | Minimal example | Importing into A/B Street | Intermediate example: Sao Paulo
Transport routing with stplanr5 years ago
Introduction | OSRM
Combining zoning systems6 years ago
Zonebuilder hackathon6 years ago
Introduction | Setup | Explore results of automated zoning system | Generate zones for different cities | How many supermarkets in different zones of the city? | Explore how mode and distance of travel changes depending on city zones | Demo Dutch cities and commuting
Parallel routing and performance with stplanr7 years ago
With old route_cyclestreets function | With new route function | With new route function in parallel | In parallel with quietness plan | Tests
Creating calendars with calendar8 years ago
Creating events