encode_field_values | R Documentation |
encode_field_values()
can replace column values based on codedValue
type field domains from a corresponding Table
or FeatureLayer
object
created with arc_open()
.
encode_field_values(
.data,
.layer,
field = NULL,
codes = c("replace", "label"),
call = rlang::caller_env()
)
.data |
A data frame returned by |
.layer |
A Table or FeatureLayer object. Required. |
field |
Default |
codes |
Use of field alias values. Defaults to
|
call |
The execution environment of a currently
running function, e.g. |
A data.frame with fields encoded with their respective domains.
layer <- arc_open(
"https://geodata.baltimorecity.gov/egis/rest/services/Housing/dmxOwnership/MapServer/0"
)
res <- arc_select(
layer,
n_max = 100,
where = "RESPAGCY <> ' '",
fields = "RESPAGCY"
)
encoded <- encode_field_values(res, layer)
table(encoded$RESPAGCY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.