clean_police_recorded_crime.Rd
Cleans police recorded crime to specification for input to
number_reoffences
model. NOTE: This function is not to be used in
preparing police_recorded_crime
for use in the unit_costs
model.
clean_police_recorded_crime(police_recorded_crime, fraud_offences = 67480)
police_recorded_crime | tidy police recorded crime dataframe with following columns
As seen in data provided with package |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fraud_prc | Integer, default 67480, this is specified in the Home Office cost of crime report. |
Returns a tidy data frame with fraud figures reduced to specified sum
Cleaning police recorded crime data takes two steps:
Change number_offences
column to numeric type
Reduce 2015/16 fraud figures to total specified amount