THIS README IS FOR THE DATA/PROCESSED_DATA/CRIME/COUNT_DATA_CENSUS_TRACTS DIRECTORY.

THIS DIRECTORY CONTAINS THE CODE TO GENERATE COUNT DATA SETS ON THE CENSUS TRACT LEVEL FROM THE CRIME SPATIAL POINT PATTERNS FOR EACH CITY AND THE OUTPUT COUNT DATA.

THE MANIPULATED DATA FILES (CREATED WITHIN THIS DIRECTORY) ARE CONTAINED WITHIN THIS ARCHIVED FOLDER.

- CountDataGen_CT_final.R which takes in the crime points patterns for each city from DATA/PROCESSED_DATA/CRIME/POINT_PATTERN and the socio-economic variables from DATA/PROCESSED_DATA/COVARIATES to merge in to a data set with counts of incidents over the census tracts and combining them with the relevant variables values. Note that the income variable used for the census tract data is *_CTInc_15_0imp_proj.rds where the missing values of income are set to zero if the estimate for total households for that census tract is zero, and the remaining missing values are imputed.
	-- Outputs: the output count data are saved in a sub-directory for each city as:
		--- *2015CTCountData_projFinal.rda: the count data over census tracts along with the corresponding socio-economic variables as well as other variables such as the census tract areas, with the data sets labelled ct_homcount.df and ct_gtacount.df for the homicides and motor vehicle thefts, respectively;
		--- *2015CTSFCountData_projFinal.rda: this is the same data but saved as an sf object.

NOTE THAT THE OUTPUTS  *2015CTCountData_projFinal.rda AND *2015CTSFCountData_projFinal.rda CONTAIN ADDITIONAL SOCIO-ECONOMIC VARIABLES HOWEVER, ANY USE OF THESE DATA SETS WITHIN THE THESIS ARE FOCUSSED ONLY ON THE TOTAL POPULATION AND AVERAGE INCOME. THEREFORE, ANY MENTION OF THESE ADDITIONAL VARIABLES IN RELEVANT README DOCUMENTS ARE AS AN ASIDE AND THE R CODE TO INCLUDE THESE ADDITIONAL VARIABLES ARE COMMENTED OUT. HOWEVER, THE CODE AND THE ACCESS TO THESE VARIABLES ARE STILL AVAILABLE IF REQUIRED.
