View source: R/findFirstStudyRegionPoint.R
findBASSeed | R Documentation |
This function uses sf::st_sample()
internally to generate a random point in the study region.
It then maps that point to the Halton Sequence to ensure that the random starting point is within the region.
That point is approximately mapped, and thus a check to make sure the new point is still within the study region is completed.
This function is used internally, but may useful for a user to generate multiple seeds in advance in a simulation study using BAS.
findBASSeed(shapefile, bb, n = 1, verbose = FALSE)
shapefile |
Shape file as a polygon (sp or sf) of the study area(s). |
bb |
Bounding box which defines the sample. A bounding box must be supplied and may not necessarily be the bounding box of the provided shape. |
n |
Number of seeds to produce. |
verbose |
Boolean if you want to see any output printed to screen. Helpful if taking a long time. Default is FALSE i.e. no informational messages are displayed. |
A vector when n = 1 (Default), or a matrix when n > 1.
Paul van Dam-Bates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.