cellToVertex: Cell To Vertex

View source: R/vertexes.R

cellToVertexR Documentation

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)

Arguments

cell

vector of H3 cells

vertexNum

integer giving the vertex number of the index to return

Value

vector of vertex indexes

Examples


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


h3r documentation built on April 3, 2025, 10:47 p.m.