meshcode_sf {jpmesh} | R Documentation |
Conversion to sf objects containing meshcode
Description
Convert and export meshcode area to sf
.
Usage
meshcode_sf(data, mesh_var, .type, .keep_class = FALSE)
Arguments
data |
data.frame |
mesh_var |
unquoted expressions for meshcode variable. |
.type |
Specify the |
.keep_class |
Do you want to assign a class to the meshcode column
in data.frame? If |
Value
sf object
Examples
d <- data.frame(id = seq.int(4),
meshcode = rmesh(4),
stringsAsFactors = FALSE)
meshcode_sf(d, meshcode)
[Package jpmesh version 2.1.0 Index]