Learn R Programming

h3r (version 0.1.2)

cellToVertex: Cell To Vertex

Description

Returns the index for the specified cell vertex. Valid vertex numbers are between 0 and 5 (inclusive) for hexagonal cells, and 0 and 4 (inclusive) for pentagonal cells.

Usage

cellToVertex(cell, vertexNum)

Value

vector of vertex indexes

Arguments

cell

vector of H3 cells

vertexNum

integer giving the vertex number of the index to return

Examples

Run this code

cellToVertex(
  cell = c(rep("8cbe63562a54bff", 6))
  , vertexNum = c(0L:5L)
  )

Run the code above in your browser using DataLab