Learn R Programming

spdgp (version 0.1.0)

make_square_grid: Create a square grid

Description

Creates a square grid with ncol and nrow dimensions.

Usage

make_square_grid(nrow, ncol = nrow)

Value

An sfc object by sf package.

Arguments

nrow

the number of rows in the grid.

ncol

defaults to nrow. The number columns in the grid.

Examples

Run this code
make_square_grid(3, 2)

Run the code above in your browser using DataLab