powered by
Convert and export meshcode area to sf.
sf
meshcode_sf(data, mesh_var, .type, .keep_class = FALSE)
data.frame
unquoted expressions for meshcode variable.
Specify the subdivision if you want to get a 100m mesh.
subdivision
Do you want to assign a class to the meshcode column in data.frame? If FALSE, it will be treated as a character type.
FALSE
sf object
# NOT RUN { d <- data.frame(id = seq.int(4), meshcode = rmesh(4), stringsAsFactors = FALSE) meshcode_sf(d, meshcode) # }
Run the code above in your browser using DataLab