polyfill: Polyfill

Description Usage Arguments Examples

View source: R/algorithms.R

Description

Get the set of hexagons within a polygon.

Usage

1
polyfill(polygon, resolution = 4L)

Arguments

polygon

A list defining coordiantes of polygon.

resolution

Hexbin resolution, see official documentation.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# define a polygon
polygon <- list(
 list(37.813318999983238, -122.4089866999972145),
 list(37.7198061999978478, -122.3544736999993603),
 list(37.8151571999998453, -122.4798767000009008)
)

polyfill(polygon, 7L)

## End(Not run)

JohnCoene/h3inr documentation built on Oct. 30, 2019, 7:57 p.m.