blackthrive / extractss Goto Github PK
View Code? Open in Web Editor NEWExtractSS is an R package for programmatically acquiring and enriching stop and search data from data.police.uk
License: MIT License
ExtractSS is an R package for programmatically acquiring and enriching stop and search data from data.police.uk
License: MIT License
Suspect buggy behaviour in time periods that cross years in analyse_records scripts. Inspect and rectify.
For some code examples you're using curly double quotes (“). These need to be changed so the code works when copy and pasted.
e.g. This
lam_har_birm_coords <- subset_coords(coords, la = c(“Lambeth”, “Haringey”, “Birmingham”))
should be this (the colour coding should improve when it's right).
lam_har_birm_coords <- subset_coords(coords, la = c("Lambeth", "Haringey", "Birmingham"))
Given you know through show_area_values
all the valid values, can you throw an error message if an input to subset_coords
is outside that?
For instance, if instead of saying 'Croydon' I say 'croydon', the error I get is a 502 error when it actually tries to query the API.
It'd be more helpful if subset_coords
told me in advance something like:
'croydon' is not a valid setset, please run 'show_area_values()' for a list of valid areas.
Where this might especially trip people up is if you put multiple areas in, spelt one of them wrong, you would still get data, but might not immediately spot you had less than you wanted.
Alter existing code to summarise data for all ethnicities and compare between them
Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
EOF within quoted string
This is happening due to the end of file being detected and potentially has something to do with quotes or the encoding of the text itself. This definitely occurred for the data dictionary, but the latest warnings don't provide a problem file.
Here is a set that worked for me (or at least gives the clue that installr isn't the right approach for linux.
In bash
# install devtools required packages
apt-get install libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
In R prompt:
# install devtools and extractss from github
install.packages("devtools")
devtools::install_github("BlackThrive/extractss")
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.