dot-randPointsReturn: Return output common to "randPointsRespecting~" functions

.randPointsReturnR Documentation

Return output common to "randPointsRespecting~" functions

Description

Returns an object of same class as input unless user desired to strip non-geographic data from the output.

Usage

.randPointsReturn(x, randSites, crs, keepData, out = NULL)

Arguments

x

Original input data (matrix, data frame, SpatialPoints, or SpatialPointsDataFrame).

randSites

SpatialPoint object.

crs

Character or object of class CRS.

keepData

Logical, if TRUE then the original data in x (i.e., columns that do not represent coordinates) will be retained in the output but the coordinates will be shuffled. If FALSE (default) then the returned value will have just shuffled coordinates.

out

NULL (should be NULL if keepData is FALSE), or a copy of the original input data (the unshuffled x).


adamlilith/enmSdm documentation built on Jan. 6, 2023, 11 a.m.