-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NA #10
Comments
what script are you referring to? |
i'm sorry. I was trying to work out this part: summary_stats <- function(search_conducted, contraband_found) { basic_summary_statistics_by_race = florida %>% |
A tibble: 6 x 6Groups: driver_race [6]driver_race n_stops n_searches n_hits search_rate hit_rate |
I assume this is the result of running on FL data? If so, this is happening because the FL data has NAs in the search_conducted/contraband_found columns (because some stops lack that data), so the search and hit counts/rates become NA as well. You probably want to filter those out prior to computing search and hit statistics; this is not necessary for CT, the state used in the tutorial. (Actually, FL has no contraband found data at all, so hit rates will not be computable). |
Ah I was expecting that but assumed I made a mistake with the data because i couldn't imagine there wasn't found any contraband at all. Too bad, i'm going to try some thing else. thanks for your help! |
Good luck! In case you haven't yet seen it, the data readme will often provide useful tips on specific states (eg, missing data). https://github.com/5harad/openpolicing/blob/master/DATA-README.md |
when using this script for example for the data of Florida, i only get NA at n_searches and n_hits
The text was updated successfully, but these errors were encountered: