ar_validate {areal} | R Documentation |
Validating Data for Interpolation
Description
ar_validate
executes a series of logic tests for sf
object status,
shared coordinates between source and target data, appropriate project, and absence of
variable name conflicts.
Usage
ar_validate(source, target, varList, method = "aw", verbose = FALSE)
Arguments
source |
A |
target |
A |
varList |
A vector of variable names to be added to the |
method |
The areal interpolation method validation is being performed for. This
should be set to |
verbose |
A logical scalar; if |
Value
If verbose
is FALSE
, a logical scalar is returned that is TRUE
is all tests are passed and FALSE
if one or more tests is failed. If verbose
is TRUE
, a tibble with detailed test results is returned.
See Also
Examples
ar_validate(source = ar_stl_asthma, target = ar_stl_wards, varList = "ASTHMA")
ar_validate(source = ar_stl_asthma, target = ar_stl_wards, varList = "ASTHMA", verbose = TRUE)