aw_verify {areal}R Documentation

Verify Correct Extensive-Sum Interpolation

Description

Verify Correct Extensive-Sum Interpolation

Usage

aw_verify(source, sourceValue, result, resultValue)

Arguments

source

A sf object with data to be interpolated

sourceValue

A column within source to be interpolated

result

A sf object with interpolated data

resultValue

A column within result with the interpolated values

Details

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.

Value

A logical scalar; if TRUE, these two values are equal.

Examples

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)


[Package areal version 0.1.8 Index]