qm_validate | R Documentation |
This function ensures that the input vector values match valid values in a source shapefile.
qm_validate(ref, key, value)
ref |
An |
key |
Name of geographic id variable in the |
value |
A vector of input values created with |
A logical scalar that is TRUE
is all input values match values in the key variable.
qm_define
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.