diff --git a/docs/articles/polygon_intersection.html b/docs/articles/polygon_intersection.html index 9f76545..154fab4 100644 --- a/docs/articles/polygon_intersection.html +++ b/docs/articles/polygon_intersection.html @@ -142,11 +142,11 @@
-weights$diff <- weights$w - weights$w
+weights$diff <- weights$w - weights$gdptools_wght
# make sure nothing is way out of whack
max(weights$diff, na.rm = TRUE)
-#> [1] 0
+#> [1] 0.0000009205585
# ensure the weights generally sum as we would expect.
sum(weights$gdptools_wght, na.rm = TRUE)
diff --git a/vignettes/polygon_intersection.Rmd b/vignettes/polygon_intersection.Rmd
index 6cadbd5..ef4dae6 100644
--- a/vignettes/polygon_intersection.Rmd
+++ b/vignettes/polygon_intersection.Rmd
@@ -67,7 +67,7 @@ With weights calculated, we can do a little investigation into the differences.
```{r}
-weights$diff <- weights$w - weights$w
+weights$diff <- weights$w - weights$gdptools_wght
# make sure nothing is way out of whack
max(weights$diff, na.rm = TRUE)