The function takes data frame generated by one of the functions that sourced data from statistics.gov.scot and returns pre-processed data set with the following changes.
pre_process_data(x, clean_URI_strings = TRUE, remove_cols = TRUE, clean_column_names = TRUE)
x | A data frame, usually obtained via
|
---|---|
clean_URI_strings | Defaults to |
remove_cols | Removes redundant columns, such as columns with value
|
clean_column_names | Defaults to |
A data frame.
# NOT RUN { pre_process_data(x = get_geography_data(data_set = "recorded-crime", geography = "Glasgow City", measure = "count")) # }