aw_verify | R Documentation |
Verify Correct Extensive-Sum Interpolation
aw_verify(source, sourceValue, result, resultValue)
source |
A |
sourceValue |
A column within |
result |
A |
resultValue |
A column within |
aw_verify
ensures that the sum of the resulting interpolated
value is equal to the sum of the original source value. This functionality
only works for interpolations that are extensive and use the sum
approach to calculating areal weights.
A logical scalar; if TRUE
, these two values are equal.
result <- aw_interpolate(ar_stl_wards, tid = WARD, source = ar_stl_race, sid = GEOID, weight = "sum", output = "tibble", extensive = "TOTAL_E") aw_verify(source = ar_stl_race, sourceValue = TOTAL_E, result = result, resultValue = TOTAL_E)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.