jpmesh (version 1.2.0)

mesh_convert: Mesh unit converter

Description

Return different meshcode values included in the mesh.

Usage

mesh_convert(meshcode = NULL, to_mesh_size = NULL)

Arguments

meshcode

character. mesh code

to_mesh_size

target mesh type. From 80km to 0.125km. If NULL, the meshcode of one small scale will be returned. If it is the same as the original size, the meshcode of the input will be return.

Examples

Run this code
# NOT RUN {
mesh_convert(meshcode = "52350432", to_mesh_size = 80)
mesh_convert("52350432", 10)
# Scale down
mesh_convert("52350432", 0.500)
mesh_convert("52350432", 0.250)
mesh_convert(meshcode = "52350432", 0.125)
mesh_convert("523504323", 0.250)
mesh_convert("5235043213", 0.125)
mesh_convert("52350432", 1)
mesh_convert("52350432131", 0.125)
# }

Run the code above in your browser using DataCamp Workspace