assign_to_grid: Given spatial points of population, assign them to shapes.

Description Usage Arguments Value

View source: R/geometry.R

Description

This transforms the grid into the same space as the points dataset and then assigns the sum of points to the grid.

Usage

1

Arguments

grid

A regular grid.

points

An sf points dataset.

Value

An sf grid with points assigned or NA where there are no points.


dd-harp/population_comparison_bioko documentation built on Feb. 28, 2021, 11:05 p.m.