accidents {GLMcat} | R Documentation |
Accidents Dataset
Description
This dataset contains information about various accidents, including details such as accident severity, road and weather conditions, light conditions, and the number of casualties.
Usage
accidents
Format
A data frame with 109,577 rows and 12 variables:
- accident_severity
Factor with levels
Slight
,Serious
,Fatal
- road_type
Factor with levels
Dual carriageway
,One way street
,Roundabout
,Single carriageway
,Slip road
- weather_conditions
Factor with levels
Fine + high winds
,Fine no high winds
,Fog or mist
,Raining + high winds
,Raining no high winds
,Snowing
- light_conditions
Factor with levels
Darkness
,Daylight
- day_of_week
Factor with levels
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
- number_of_casualties
Numeric, number of casualties in the accident
- urban_or_rural_area
Factor with levels
Urban
,Rural
- speed_limit
Numeric, speed limit at the accident location
- junction_detail
Factor with levels
Not at junction or within 20 metres
,T or staggered junction
,Crossroads
,Roundabout
,Other junction
,Private drive or entrance
- carriageway_hazards
Factor with levels
Any animal in carriageway (except ridden horse)
,Data missing or out of range
,None
,Other object on road
,Pedestrian in carriageway - not injured
,Previous accident
,Vehicle load on road
- weather
Factor with levels
Fine + high winds
,Fine no high winds
,Fog or mist
,Raining + high winds
,Raining no high winds
,Snowing
- road
Factor with levels
Dual carriageway
,One way street
,Roundabout
,Single carriageway
,Slip road
Source
Data from 2019, openly available at https://www.data.gov.uk/, accessed in September 2023.
Examples
data(accidents)