powered by
This function will return the length of all edges in the specified grid object.
edgelength(gridObj, ...)# S4 method for trigrid edgelength(gridObj, output = "distance")
# S4 method for trigrid edgelength(gridObj, output = "distance")
(trigrid or {hexagrid}) A grid object.
trigrid
{hexagrid}
Arguments passed to the class specific methods.
(character) The type of the output. "distance" will give back the distance in the metric that was fed to the function in the coordinates or the radius. "deg" will output the the distance in degrees, "rad" will do so in radians.
character
"distance"
"deg"
"rad"
A named numeric vector.
numeric
# NOT RUN { g <- trigrid(3) edges <- edgelength(g, output="deg") edges # }
Run the code above in your browser using DataLab