--- title: "Hints" date: "2019-09-03" publishDate: "2019-08-20" output: html_document: highlight: default toc: false toc_float: false number_sections: false ---
tidyverse, sf, and tmap.read_csv function to load the health centre csv file.st_read function to load the shape files of the admin 2 boundaries.st_as_sf function, type ?st_as_sf into the console to get more details. You will need to say which columns are the coordinates and tell the function what crs is needed.st_transform to reproject the data. For Haiti, the EPSG code for UTM is either 44132 or 32618. Use the internet or trial and error in R to see which code it is.st_buffer to create a buffer around the health centres locations.st_union can be used to turn many spatial object into a single spatial object.st_difference will calculate the difference between two areas this will give you the regions that are further than 5km from a health facility.tmap to create a map. tm_shape(), tm_polygons(), and tm_dots().