cellToVertex {h3r}R 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)
  )


[Package h3r version 0.1.1 Index]