Skip to content

Commit

Permalink
Update 04-spatial-operations.Rmd (#1016)
Browse files Browse the repository at this point in the history
Removed extra "the"
  • Loading branch information
tibbles-and-tribbles authored Dec 16, 2023
1 parent abd886c commit 3265cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 04-spatial-operations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ st_is_within_distance(point_sf, polygon_sfc, dist = 0.2, sparse = FALSE)[, 1]
```

Note that although point 2 is more than 0.2 units of distance from the nearest vertex of `polygon_sfc`, it is still selected when the distance is set to 0.2.
This is because distance is measured to the nearest edge, in this case the part of the the polygon that lies directly above point 2 in Figure \@ref(fig:relation-objects).
This is because distance is measured to the nearest edge, in this case the part of the polygon that lies directly above point 2 in Figure \@ref(fig:relation-objects).
(You can verify the actual distance between point 2 and the polygon is 0.13 with the command `st_distance(point_sf, polygon_sfc)`.)

```{r, eval=FALSE, echo=FALSE}
Expand Down

0 comments on commit 3265cf2

Please sign in to comment.