Skip to content

Commit

Permalink
Type out -> type
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Sep 29, 2024
1 parent 4e72474 commit e05b594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _11-ex.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e05b594

Please sign in to comment.