From e05b5947ecfe353329e619d32e3c9a6c049d3e17 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Sun, 29 Sep 2024 08:54:37 +0100 Subject: [PATCH] Type out -> type --- _11-ex.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_11-ex.Rmd b/_11-ex.Rmd index 6f5ce716b..c8519b012 100644 --- a/_11-ex.Rmd +++ b/_11-ex.Rmd @@ -43,7 +43,7 @@ Furthermore, the anonymous functions could be replaced with named functions and E2. In the geometric algorithms section, we calculated that the area of the polygon `poly_mat` was 245 units squared and that its centroid as at the coordinates (8.8, 9.2). - - Reproduce the results on your own computer with reference to the script [`11-centroid-alg.R`](https://github.com/geocompx/geocompr/blob/main/code/11-centroid-alg.R), an implementation of this algorithm (bonus: type out the commands - try to avoid copy-pasting). + - Reproduce the results on your own computer with reference to the script [`11-centroid-alg.R`](https://github.com/geocompx/geocompr/blob/main/code/11-centroid-alg.R), an implementation of this algorithm (bonus: type the commands - try to avoid copy-pasting). - Are the results correct? Verify them by converting `poly_mat` into an `sfc` object (named `poly_sfc`) with `st_polygon()` (hint: this function takes objects of class `list()`) and then using `st_area()` and `st_centroid()`. ```{r 11-ex-e}