the link to the git repository including all codes, test and documentation
-
Creating an R package
-
Cleaning up last lab's code and wrapping it in functions
-
Writing some tests and documentation
team_X <- function(file, tolerance) where X is the solution for team X used, file is a file path to a shape file and tolerance is the value used for thinning the polygon
The return value is a data frame of the geographic information of the polygons and the additional information (such as name of the country, name of the territory/state, ...)