qm_validate {qualmap} | R Documentation |
Validate input vector
Description
This function ensures that the input vector values match valid values in a source shapefile.
Usage
qm_validate(ref, key, value)
Arguments
ref |
An |
key |
Name of geographic id variable in the |
value |
A vector of input values created with |
Value
A logical scalar that is TRUE
is all input values match values in the key variable.
See Also
qm_define
Examples
# load and format reference data
stl <- stLouis
stl <- dplyr::mutate(stl, TRACTCE = as.numeric(TRACTCE))
# create clusters
clusterValid <- qm_define(118600, 119101, 119300)
clusterError <- qm_define(118600, 119101, 800000)
# validate clusters
qm_validate(ref = stl, key = TRACTCE, value = clusterValid)
qm_validate(ref = stl, key = TRACTCE, value = clusterError)
[Package qualmap version 0.2.2 Index]