Package: h3r 0.1.1

David Cooley

h3r: Hexagonal Hierarchical Geospatial Indexing System

Provides access to Uber's 'H3' geospatial indexing system via 'h3lib' <https://CRAN.R-project.org/package=h3lib>. 'h3r' is designed to mimic the 'H3' Application Programming Interface (API) <https://h3geo.org/docs/api/indexing/>, so that any function in the API is also available in 'h3r'.

Authors:David Cooley [aut, cre], Ray Shao [aut]

h3r_0.1.1.tar.gz
h3r_0.1.1.zip(r-4.5)h3r_0.1.1.zip(r-4.4)h3r_0.1.1.zip(r-4.3)
h3r_0.1.1.tgz(r-4.4-x86_64)h3r_0.1.1.tgz(r-4.4-arm64)h3r_0.1.1.tgz(r-4.3-x86_64)h3r_0.1.1.tgz(r-4.3-arm64)
h3r_0.1.1.tar.gz(r-4.5-noble)h3r_0.1.1.tar.gz(r-4.4-noble)
h3r_0.1.1.tgz(r-4.4-emscripten)h3r_0.1.1.tgz(r-4.3-emscripten)
h3r.pdf |h3r.html
h3r/json (API)

# Install 'h3r' in R:
install.packages('h3r', repos = c('https://symbolixau.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/symbolixau/h3r/issues

Datasets:

On CRAN:

4.23 score 5 stars 17 scripts 206 downloads 54 exports 1 dependencies

Last updated 9 months agofrom:2017a7253d. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-win-x86_64OKNov 08 2024
R-4.5-linux-x86_64OKNov 08 2024
R-4.4-win-x86_64OKNov 08 2024
R-4.4-mac-x86_64OKNov 08 2024
R-4.4-mac-aarch64OKNov 08 2024
R-4.3-win-x86_64OKNov 08 2024
R-4.3-mac-x86_64OKNov 08 2024
R-4.3-mac-aarch64OKNov 08 2024

Exports:areNeighborCellscellAreaKm2cellAreaM2cellAreaRads2cellsToDirectedEdgecellToBoundarycellToCenterChildcellToChildPoscellToChildrencellToLatLngcellToLocalIjcellToParentcellToVertexcellToVertexeschildPosToCellcompactCellsdegsToRadsdirectedEdgeToBoundarydirectedEdgeToCellsedgeLengthKmedgeLengthMedgeLengthRadsgetBaseCellNumbergetDirectedEdgeDestinationgetDirectedEdgeOrigingetHexagonAreaAvgKm2getHexagonAreaAvgM2getHexagonEdgeLengthAvgKmgetHexagonEdgeLengthAvgMgetIcosahedronFacesgetNumCellsgetPentagonsgetRes0CellsgetResolutiongreatCircleDistanceKmgreatCircleDistanceMgreatCircleDistanceRadsgridDiskgridDiskDistancesgridDistancegridPathCellsgridRingUnsafeisPentagonisResClassIIIisValidCellisValidDirectedEdgeisValidVertexlatLngToCelllocalIjToCelloriginToDirectedEdgespolygonToCellsradsToDegsuncompactCellsvertexToLatLng

Dependencies:h3lib

Readme and manuals

Help Manual

Help pageTopics
Are neighbor cellsareNeighborCells
Exact area of specific cell in square kilometers.cellAreaKm2
Exact area of specific cell in square meters.cellAreaM2
Exact area of specific cell in square radians.cellAreaRads2
Cells to directed edgecellsToDirectedEdge
Cell To BoundarycellToBoundary
Provies the center child index contained by 'cell' at the 'childRes' resolutioncellToCenterChild
Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes.cellToChildPos
Cell To ChildrencellToChildren
Cell To Lat LoncellToLatLng
Cell to Local IJcellToLocalIj
Cell To ParentcellToParent
Cell To VertexcellToVertex
Cell To VertexescellToVertexes
Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.childPosToCell
Compacts the set cellSet of indexes as best as possible, into the array compactedSet.compactCells
Degrees To RadsdegsToRads
Directed edge To BoundarydirectedEdgeToBoundary
Directed Edge To CellsdirectedEdgeToCells
Get the exact edge length of specific unidirectional edge in kilometers.edgeLengthKm
Get the exact edge length of specific unidirectional edge in meters.edgeLengthM
Get the exact edge length of specific unidirectional edge in radians.edgeLengthRads
Get Base Cell NumbergetBaseCellNumber
Get Directed Edge DestinationgetDirectedEdgeDestination
Get Directed Edge OrigingetDirectedEdgeOrigin
Get the average hexagon area in square kilometers at the given resolution. Excludes pentagons.getHexagonAreaAvgKm2
Get the average hexagon area in square meters at the given resolution. Excludes pentagons.getHexagonAreaAvgM2
Get the average hexagon edge length in kilometers at the given resolution. Excludes pentagons.getHexagonEdgeLengthAvgKm
Get the average hexagon edge length in meters at the given resolution. Excludes pentagons.getHexagonEdgeLengthAvgM
Get Icosahedron FacesgetIcosahedronFaces
Get the number of unique H3 indexes at the given resolution.getNumCells
Get all the pentagon H3 indexes at the specified resolution.getPentagons
Get all the resolution 0 H3 indexes.getRes0Cells
Get ResolutiongetResolution
Great Circle Distance In KilometersgreatCircleDistanceKm
Great Circle Distance In MetersgreatCircleDistanceM
Great Circle Distance In RadiansgreatCircleDistanceRads
Grid DiskgridDisk
Grid Disk DistancesgridDiskDistances
Grid DistancegridDistance
Grid Path CellsgridPathCells
Grid Ring UnsafegridRingUnsafe
Is PentagonisPentagon
Is Res Class IIIisResClassIII
Is Valid CellisValidCell
Is valid directed edgeisValidDirectedEdge
Is Valid VertexisValidVertex
lat lng to celllatLngToCell
Local IJ To CelllocalIjToCell
Origin To Directed EdgesoriginToDirectedEdges
Polygon to cellspolygonToCells
Rads to DegreesradsToDegs
Stationsstations
Uncompacts a set of compacted H3 cell indexes to a given resolution.uncompactCells
Vertex To Lat LngvertexToLatLng