virtual_data | R Documentation |
Generate new data based on virtual niche
virtual_data(features, from = c("ellipsoid", "prediction"),
data = NULL, prediction = NULL, n = 100, tol = 1e-8)
features |
list of characteristics that defined the ellipsoid. This
list ca be obtained using the function |
from |
(character) where to generate or sample data from. Options are "ellipsoid" or "prediction". Default = "ellipsoid" . |
data |
matrix or data.frame containing values (at least environmental
values) used to obtain |
prediction |
list of predictions based on |
n |
(numeric) size of data to be generated (number of points). Default = 100. |
tol |
(numeric) the tolerance for detecting linear dependencies. Default = 1e-8. |
Generation of virtual data is done using the function
mvrnorm
when from
= "ellipsoid".
Virtual data is generated according to suitability values (multivariate
normal probabilities) when from
= "prediction". In this case defining
the arguments data
and prediction
is mandatory if the elements
in prediction
are of class numeric. If elements in prediction
are of class RasterLayer, data
is not required.
A matrix or data.frame with the virtual data generated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.