Giter VIP home page Giter VIP logo

opp's People

Contributors

5harad avatar amyshoe avatar danjenson avatar jgaeb avatar jnu avatar kenielyao avatar tigerpaws avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opp's Issues

Generate standardized report for cities

Basic Statistics:

  1. number of rows (total)
  2. time range (e.g. 2010-2015, 4/2010 - 6/2015, or 1/1/2010 - 12/31/2015)
  3. number of rows by year
  4. standardized column names

"location" Values

One of the locations 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.

Package code?

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.

Geographical Coordinates System?

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?

Python and R data downloaders do not work out of the box

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

Finalize standardized columns and names

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.

Location variable in IL data

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.