Skip to contents

Returns the indexes for all vertices of the given cell. The Output will have a 0 in the result if the input cell is a pentagon

Usage

cellToVertexes(cell)

Arguments

cell

vector of H3 cells

Value

list of vectors giving the vertices of each cell. Each list element corresponds to the cell index given in the cell argument, and each element of the vector are the cell vertexes.

Examples


cellToVertexes(cell = c("8cbe63562a54bff", "8cbe635631103ff") )
#> $`8cbe63562a54bff`
#> [1] "24cbe63562a549ff" "25cbe63562a541ff" "24cbe63562a541ff" "25cbe63562a543ff"
#> [5] "24cbe63562a54bff" "25cbe63562a54bff"
#> 
#> $`8cbe635631103ff`
#> [1] "24cbe635631101ff" "23cbe635631101ff" "22cbe635631103ff" "23cbe635631103ff"
#> [5] "24cbe635631103ff" "25cbe635631103ff"
#>