-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ e2513d3 🚀
- Loading branch information
1 parent
f3e1c90
commit 08f703f
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"path":"/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 Leeds Institute Transport Studies Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Robin Lovelace. Author, maintainer.","code":""},{"path":"/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Lovelace R (2024). opsnap: Operation Snap Police Records. R package version 0.0.0.9000.","code":"@Manual{, title = {opsnap: Operation Snap Police Records}, author = {Robin Lovelace}, year = {2024}, note = {R package version 0.0.0.9000}, }"},{"path":"/index.html","id":"note","dir":"","previous_headings":"","what":"Operation Snap Police Records","title":"Operation Snap Police Records","text":"package development yet CRAN. like use , please install GitHub shown , cite follows: Farrell, G., Lovelace, R., & O’Hern, S. (2024). Road User Video Evidence Road Traffic Offences: Preliminary Analysis Operation Snap Data Suggestions Research Agenda. https://doi.org/10.31235/osf.io/cgjmr Read full paper .","code":"@misc{farrellRoadUserVideo2024, title = {Road {{User Video Evidence}} of {{Road Traffic Offences}}: {{Preliminary Analysis}} of {{Operation Snap Data}} and {{Suggestions}} for a {{Research Agenda}}}, shorttitle = {{{ROAD USER VIDEO EVIDENCE OF ROAD TRAFFIC OFFENCES}}}, author = {Farrell, Graham and Lovelace, Robin and O'Hern, Steve}, year = {2024}, month = jul, publisher = {OSF}, doi = {10.31235/osf.io/cgjmr}, urldate = {2024-07-29}, archiveprefix = {OSF}, langid = {american}, keywords = {antisocial driving,dangerous driving,near misses,Operation Snap,OpSnap,roas safety,Video evidence} }"},{"path":"/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Operation Snap Police Records","text":"Install package GitHub:","code":""},{"path":"/index.html","id":"opsnap-data","dir":"","previous_headings":"","what":"Opsnap data","title":"Operation Snap Police Records","text":"opsnap package provides function download read data West Yorkshire Police Operation Snap database. data available following URL: https://www.westyorkshire.police.uk/SaferRoadsSubmissions Data following years provided: data open acess looks like , names cleaned package:","code":"u = \"https://www.westyorkshire.police.uk/sites/default/files/2024-01/operation_snap_oct-dec_2023_0.xlsx\" d = opsnap:::download_and_read(u) names(d_with_location) # Old names: # [1] \"REPORTER TRANSPORT MODE\" \"OFFENDER VEHICLE MAKE\" # [3] \"OFFENDER VEHICLE MODEL\" \"OFFENDER VEHICLE COLOUR\" # [5] \"OFFENCE\" \"DISTRICT\" # [7] \"DISPOSAL\" \"DATE OF SUBMISSION\" # [9] \"...9\" \"OFF LOCATION\" # New names: # [1] \"mode\" \"make\" \"model\" \"colour\" \"offence\" \"district\" \"disposal\" # [8] \"date\" \"location\""},{"path":"/index.html","id":"preliminary-analysis","dir":"","previous_headings":"","what":"Preliminary analysis","title":"Operation Snap Police Records","text":"20364 records data, increasing numbers records time (average n. records per month shown ): shown graph (72.6%) records values ‘location’ column. breakdown records mode transport (observer) shown : offence text strings quite long, common offences shown : equivalent table excluding records missing location data shown : equivalent cyclists, location present least common offences categorised ‘’, shown : terms ‘disposal’, common values shown : 8902 unique location text strings (addresses) data, common locations shown :","code":""},{"path":"/index.html","id":"geocoding","dir":"","previous_headings":"","what":"Geocoding","title":"Operation Snap Police Records","text":"provide function geocode records: geocoding records kept within boundary West Yorkshire, removed another 3% records.","code":"d_sample = d_with_location[1:5, ] d_sf = opsnap:::op_geocode(d_sample) mapview::mapview(d_sf)"},{"path":"/index.html","id":"location-of-incidents","dir":"","previous_headings":"","what":"Location of incidents","title":"Operation Snap Police Records","text":"Due inaccuracy geocoding, know locations records within around 500m crash (although can link specific roads). ’ll present geographic distribution crashes using 500m grid: map represents 8607 incidents West Yorkshire offence geocoded.","code":""},{"path":"/reference/download_and_read.html","id":null,"dir":"Reference","previous_headings":"","what":"Download and read data from opsnap project — download_and_read","title":"Download and read data from opsnap project — download_and_read","text":"Download read data opsnap project","code":""},{"path":"/reference/download_and_read.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download and read data from opsnap project — download_and_read","text":"","code":"download_and_read(u, remove_nas = TRUE, dir = \"raw_data/west-yorkshire\")"},{"path":"/reference/download_and_read.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download and read data from opsnap project — download_and_read","text":"u URL data remove_nas Remove NA values? dir Download directory","code":""},{"path":"/reference/download_and_read.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download and read data from opsnap project — download_and_read","text":"Data frame","code":""},{"path":"/reference/download_and_read.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Download and read data from opsnap project — download_and_read","text":"","code":"if (FALSE) { u = \"https://www.westyorkshire.police.uk/sites/default/files/2023-10/operation_snap_july-sept_2023.xlsx\" download_and_read(, dir = \".\") }"}] | ||
[{"path":"/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 Leeds Institute Transport Studies Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Robin Lovelace. Author, maintainer.","code":""},{"path":"/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Lovelace R (2024). opsnap: Operation Snap Police Records. R package version 0.0.0.9000.","code":"@Manual{, title = {opsnap: Operation Snap Police Records}, author = {Robin Lovelace}, year = {2024}, note = {R package version 0.0.0.9000}, }"},{"path":"/index.html","id":"note","dir":"","previous_headings":"","what":"Operation Snap Police Records","title":"Operation Snap Police Records","text":"package development yet CRAN. like use , please install GitHub shown , cite follows: Farrell, G., Lovelace, R., & O’Hern, S. (2024). Road User Video Evidence Road Traffic Offences: Preliminary Analysis Operation Snap Data Suggestions Research Agenda. https://doi.org/10.31235/osf.io/cgjmr Read full paper .","code":"@misc{farrellRoadUserVideo2024, title = {Road {{User Video Evidence}} of {{Road Traffic Offences}}: {{Preliminary Analysis}} of {{Operation Snap Data}} and {{Suggestions}} for a {{Research Agenda}}}, shorttitle = {{{ROAD USER VIDEO EVIDENCE OF ROAD TRAFFIC OFFENCES}}}, author = {Farrell, Graham and Lovelace, Robin and O'Hern, Steve}, year = {2024}, month = jul, publisher = {OSF}, doi = {10.31235/osf.io/cgjmr}, urldate = {2024-07-29}, archiveprefix = {OSF}, langid = {american}, keywords = {antisocial driving,dangerous driving,near misses,Operation Snap,OpSnap,roas safety,Video evidence} }"},{"path":"/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Operation Snap Police Records","text":"Install package GitHub:","code":""},{"path":"/index.html","id":"opsnap-data","dir":"","previous_headings":"","what":"Opsnap data","title":"Operation Snap Police Records","text":"opsnap package provides function download read data West Yorkshire Police Operation Snap database. data available following URL: https://www.westyorkshire.police.uk/SaferRoadsSubmissions Data following years provided: data open acess looks like , names cleaned package:","code":"u = \"https://www.westyorkshire.police.uk/sites/default/files/2024-01/operation_snap_oct-dec_2023_0.xlsx\" d = opsnap:::download_and_read(u) names(d_with_location) # Old names: # [1] \"REPORTER TRANSPORT MODE\" \"OFFENDER VEHICLE MAKE\" # [3] \"OFFENDER VEHICLE MODEL\" \"OFFENDER VEHICLE COLOUR\" # [5] \"OFFENCE\" \"DISTRICT\" # [7] \"DISPOSAL\" \"DATE OF SUBMISSION\" # [9] \"...9\" \"OFF LOCATION\" # New names: # [1] \"mode\" \"make\" \"model\" \"colour\" \"offence\" \"district\" \"disposal\" # [8] \"date\" \"location\""},{"path":"/index.html","id":"preliminary-analysis","dir":"","previous_headings":"","what":"Preliminary analysis","title":"Operation Snap Police Records","text":"20364 records data, increasing numbers records time (average n. records per month shown ): shown graph (72.6%) records values ‘location’ column. breakdown records mode transport (observer) shown : offence text strings quite long, common offences shown : equivalent table excluding records missing location data shown : equivalent cyclists, location present least common offences categorised ‘’, shown : terms ‘disposal’, common values shown : 8902 unique location text strings (addresses) data, common locations shown :","code":""},{"path":"/index.html","id":"geocoding","dir":"","previous_headings":"","what":"Geocoding","title":"Operation Snap Police Records","text":"provide function geocode records: geocoding records kept within boundary West Yorkshire, removed another 3% records.","code":"d_sample = d_with_location[1:5, ] d_sf = opsnap:::op_geocode(d_sample) mapview::mapview(d_sf)"},{"path":"/index.html","id":"location-of-incidents","dir":"","previous_headings":"","what":"Location of incidents","title":"Operation Snap Police Records","text":"Due inaccuracy geocoding, know locations records within around 500m crash (although can link specific roads). ’ll present geographic distribution crashes using 500m grid: map represents 8607 incidents West Yorkshire offence geocoded.","code":""},{"path":"/reference/download_and_read.html","id":null,"dir":"Reference","previous_headings":"","what":"Download and read data from opsnap project — download_and_read","title":"Download and read data from opsnap project — download_and_read","text":"Download read data opsnap project","code":""},{"path":"/reference/download_and_read.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download and read data from opsnap project — download_and_read","text":"","code":"download_and_read(u, remove_nas = FALSE, dir = \"raw_data/west-yorkshire\")"},{"path":"/reference/download_and_read.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download and read data from opsnap project — download_and_read","text":"u URL data remove_nas Remove NA values? dir Download directory","code":""},{"path":"/reference/download_and_read.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download and read data from opsnap project — download_and_read","text":"Data frame","code":""},{"path":"/reference/download_and_read.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Download and read data from opsnap project — download_and_read","text":"","code":"if (FALSE) { u = \"https://www.westyorkshire.police.uk/sites/default/files/2023-10/operation_snap_july-sept_2023.xlsx\" download_and_read(, dir = \".\") }"}] |