Skip to contents

Counts the number of grid cells required to cover the shape polygon

Usage

count_cells(grid, f)

Arguments

grid

The grid as an object of class sfc

f

sf object that the grid is based on

Value

The number of grid cells of grid required to cover the polygon f