createPop: Create a population of locations (in a grid).

View source: R/createPopulation.R

createPopR Documentation

Create a population of locations (in a grid).

Description

Create a dataframe of all x and y coordinates (as integer values) within a rectangular or square grid of coordinates.

Usage

createPop(x_start, x_end, y_start, y_end)

Arguments

x_start

The most western coordinate of the grid

x_end

The most eastern coordinate of the grid.

y_start

The most southern coordinate of the grid.

y_end

The most northern coordinate of the grid.

Value

A grid of locations with coordinates (x, y).

Examples

population <- createPop(
x_start = 5, 
x_end = 27, 
y_start = 5, 
y_end = 27
)

ksauby/ACS documentation built on Aug. 18, 2022, 3:33 a.m.