random.range: random.range - supporting function for other rangemodel...

View source: R/randomrange.R

random.rangeR Documentation

random.range - supporting function for other rangemodel fucntions

Description

It is used within other functions in this package to radomly place given number of species occurrences

Usage

random.range(uid, nb, range.size, var, first)

Arguments

uid

a vector of unique ids for selection

nb

a neighbour object similar to generated from 'shp2nb'

range.size

a vector of number of sites occupied by each species

var

an optional vector of variables for constraining the randomization

first

If true, var is used while choosing the first occurrence as well. if var is null, first is always set FALSE

Details

this function is not intended for any direct use but is called within other functions of this package.

Value

a numeric vector specifying selected positions in 'uid'


rangemodelR documentation built on April 3, 2025, 7:08 p.m.