Learn R Programming

briskaR (version 1.0.4)

brk_sampling: Sampling based on distribution provided by Raster* object over a sf object

Description

Sampling based on distribution provided by Raster* object (does not have to be summed to one) over an sf object used as mask

Usage

brk_sampling(rasterStack, sf, sizeSite = 1)

Arguments

rasterStack

Raster* object (RasterLayer or RasterStack)

sf

An sf object

sizeSite

scalar or vector of the number of individual to sample per site. Default is 1. If vector, as to be the length of Raster* object