Learn R Programming

icosa (version 0.12.0)

spacing: Spacing of cell centers

Description

This function will return the distance between neighboring face centers.

Usage

spacing(x, ...)

# S4 method for trigrid spacing(x, degree = TRUE)

Value

A named numeric vector, one value for every for every neighboring cell pair.

Arguments

x

(trigrid, hexagrid) Object.

...

Arguments of class-specific methods.

degree

(logical) Should the output be returned in degrees or in kóilometers?

Details

The value for every pair is given in either degrees or kilometers depending on degree.

Examples

Run this code
h <- hexagrid(3)
spacing(h)


Run the code above in your browser using DataLab