makeFrame: Create a Halton Frame raster, defined in sf based on the...

View source: R/HaltonFunctions.r

makeFrameR Documentation

Create a Halton Frame raster, defined in sf based on the bounding box master sample.

Description

Make a Halton Frame based on B = 2^J[1]*3^J[2] grid cells. If rotation is required, will return rotated. This function is an internal function simply to select sub BAS points without having to do spatial clipping at the point level.

Usage

makeFrame(base = c(2, 3), J = c(2, 2), bb, rotate = FALSE)

Arguments

base

Co-prime base for BAS, do not change from 2,3.

J

Definition for the number of grid cells of Halton frame.

bb

Bounding box shapefile with centroid, random seed, rotation.

rotate

Boolean if you want to rotate shape before exporting.

Value

rotated sf spatial object.

Examples

## Not run: 
bb <- getBB()
haltonFrame <- makeFrame(J = c(8,4), bb = bb)

## End(Not run)

paul-vdb/DFO-master-sample documentation built on April 5, 2022, 4:35 p.m.