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 |

`sourceValue` |
A column within |

`result` |
A |

`resultValue` |
A column within |

### 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]