stanford-policylab / opp Goto Github PK
View Code? Open in Web Editor NEWOpen Policing Project
Home Page: https://openpolicing.stanford.edu
Open Policing Project
Home Page: https://openpolicing.stanford.edu
Hi all,
Thank you so much for striving to make this data and analysis as open and reproducible as possible!
Quick question. I am having trouble getting either the python cli or R package to work out of the box. Any thoughts on what might be going on?
When trying with python, I navigate to a fresh folder, git clone the repo, and cd opp
. However, when I try any of the download commands I run into the following errors:
(geo) C:\Users\jeffe\Dropbox\SpatialPolice\1_Data\opp>./download.py -t shapefiles
Traceback (most recent call last):
File "C:\Users\jeffe\Dropbox\SpatialPolice\1_Data\opp\py\download.py", line 149, in <module>
download(
File "C:\Users\jeffe\Dropbox\SpatialPolice\1_Data\opp\py\download.py", line 20, in download
d = get_urls()
File "C:\Users\jeffe\Dropbox\SpatialPolice\1_Data\opp\py\download.py", line 62, in get_urls
state, city, file_type = info(url)
File "C:\Users\jeffe\Dropbox\SpatialPolice\1_Data\opp\py\download.py", line 83, in info
state, city = resolve_location(url)
ValueError: not enough values to unpack (expected 2, got 1)
Comparatively, I am able to build the R env, yet I am unable to source the opp.R
file. Perhaps it is an issue with the ordering of instructions or the use of here::here
?
Best,
Jeff
blah blah
Have you thought of packaging this code as an R package? It would help make it available to other users and also let you improve the documentation and test coverage. I'd be happy to get the basic structure set up and assist people in moving to a package-based workflow.
The documentation for the IL data states that:
"For state patrol stops, there is mostly no information on the county of the stop. Instead, stops are mapped to districts (see the district column), which have a one-to-many relationship with counties."
I dont believe that this is actually true. The variable titled location' appears to be a zipcode which I have successfully linked to counties. I believe that the variable
beat' contains the districts discussed above.
The docs for rgdal say:
Please note that 'rgdal' will be retired during October 2023, plan transition to sf/stars/'terra' functions using 'GDAL' and 'PROJ' at your earliest convenience (see and earlier blogs for guidance).
Hello, I want to use the lat, lng data with another shapefile to find intersections. However, I'm not sure which GCS the stop data was using? Is it epsg:4269 or 3857 or 4326?
See lib/schema.R for the current list that we are asking for. Comment here with emendations and the final list that we want to use, then assign back to me.
One of the location
s in Virginia is BUCHAN COUNTY
and its county_name
is Buchanan County
...should be BUCHANAN COUNTY
.
Another Virginia location
value of BUEVISTA CITY
....should be "BUENA VISTA CITY".
also noticed that a few towns that were cities are labelled as cities still, as well as some that changed status during the time period. not sure how, or if, you were trying to keep up with those.
To that point, I could be entirely wrong here in labelling these as misspelled/mislabelled; if so, I apologize. I'm just basing these off what I see.
This is the master issue for TN - Nashville. Pass to whomever owns the milestone.
Basic Statistics:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.