Learn R Programming

icosa (version 0.12.0)

vertexradius: Calculate the vertex radii of icosahedral grid faces

Description

Great circle distances between face centers and vertices

Usage

vertexradius(x, degree = TRUE)

Value

A numeric matrix that matches in structure with the @faces slot of the provided grid x. Distances measured on each face are in the same row.

Arguments

x

(trigrid or hexagrid) Object.

degree

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

Examples

Run this code
# example grid
g <- trigrid(3)

# all vertexradius
vertrads <- vertexradius(g)

# face average
averages <- apply(vertrads, 1, mean, na.rm=TRUE)

Run the code above in your browser using DataLab