Skip to contents

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)
  )
#> [1] "24cbe63562a549ff" "25cbe63562a541ff" "24cbe63562a541ff" "25cbe63562a543ff"
#> [5] "24cbe63562a54bff" "25cbe63562a54bff"