| BIOMOD.formated.data | R Documentation |
BIOMOD_FormatingData() output object classClass returned by BIOMOD_FormatingData, and used by
bm_Tuning, bm_CrossValidation and
BIOMOD_Modeling
## S4 method for signature 'numeric,data.frame'
BIOMOD.formated.data(
sp,
env,
xy = NULL,
dir.name = ".",
data.type = NULL,
sp.name = NULL,
eval.sp = NULL,
eval.env = NULL,
eval.xy = NULL,
na.rm = TRUE,
data.mask = NULL,
shared.eval.env = FALSE,
filter.raster = FALSE
)
## S4 method for signature 'data.frame,ANY'
BIOMOD.formated.data(
sp,
env,
xy = NULL,
dir.name = ".",
data.type = NULL,
sp.name = NULL,
eval.sp = NULL,
eval.env = NULL,
eval.xy = NULL,
na.rm = TRUE,
filter.raster = FALSE
)
## S4 method for signature 'numeric,matrix'
BIOMOD.formated.data(
sp,
env,
xy = NULL,
dir.name = ".",
data.type = NULL,
sp.name = NULL,
eval.sp = NULL,
eval.env = NULL,
eval.xy = NULL,
na.rm = TRUE,
filter.raster = FALSE
)
## S4 method for signature 'numeric,SpatRaster'
BIOMOD.formated.data(
sp,
env,
xy = NULL,
dir.name = ".",
data.type = NULL,
sp.name = NULL,
eval.sp = NULL,
eval.env = NULL,
eval.xy = NULL,
na.rm = TRUE,
shared.eval.env = FALSE,
filter.raster = FALSE
)
## S4 method for signature 'BIOMOD.formated.data'
show(object)
sp |
a |
env |
a |
xy |
(optional, default |
dir.name |
a |
data.type |
a |
sp.name |
a |
eval.sp |
(optional, default |
eval.env |
(optional, default |
eval.xy |
(optional, default |
na.rm |
(optional, default |
data.mask |
(optional, default |
shared.eval.env |
(optional, default |
filter.raster |
(optional, default |
object |
a |
data.typea character corresponding to the data type
dir.namea character corresponding to the modeling folder
sp.namea character corresponding to the species name
coorda 2-columns data.frame containing the corresponding X and Y
coordinates
data.speciesa vector containing the species observations (0, 1 or
NA)
data.env.vara data.frame containing explanatory variables
data.maska SpatRaster object containing the mask of the
studied area
has.data.evala logical value defining whether evaluation data is given
has.filter.rastera logical value defining whether filtering have been done or not
eval.coord(optional, default NULL)
A 2-columns data.frame containing the corresponding X and Y
coordinates for evaluation data
eval.data.species(optional, default NULL)
A vector containing the species observations (0, 1 or NA) for
evaluation data
eval.data.env.var(optional, default NULL)
A data.frame containing explanatory variables for evaluation data
biomod2.versiona character corresponding to the biomod2 version
calla language object corresponding to the call used to obtain the object
Damien Georges
BIOMOD_FormatingData, bm_Tuning,
bm_CrossValidation, BIOMOD_Modeling,
bm_RunModelsLoop
Other Toolbox objects:
BIOMOD.ensemble.models.out,
BIOMOD.formated.data.PA,
BIOMOD.models.options,
BIOMOD.models.out,
BIOMOD.options.dataset,
BIOMOD.options.default,
BIOMOD.projection.out,
BIOMOD.rangesize.out,
BIOMOD.stored.data,
biomod2_ensemble_model,
biomod2_model
showClass("BIOMOD.formated.data")
## ----------------------------------------------------------------------- #
library(terra)
# Load species occurrences (6 species available)
data(DataSpecies)
head(DataSpecies)
# Select the name of the studied species
myRespName <- 'GuloGulo'
# Get corresponding presence/absence data
myResp <- as.numeric(DataSpecies[, myRespName])
# Get corresponding XY coordinates
myRespXY <- DataSpecies[, c('X_WGS84', 'Y_WGS84')]
# Load environmental variables extracted from BIOCLIM (bio_3, bio_4, bio_7, bio_11 & bio_12)
data(bioclim_current)
myExpl <- terra::rast(bioclim_current)
## ----------------------------------------------------------------------- #
# Format Data with true absences
myBiomodData <- BIOMOD_FormatingData(resp.name = myRespName,
resp.var = myResp,
resp.xy = myRespXY,
expl.var = myExpl)
myBiomodData
plot(myBiomodData)
summary(myBiomodData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.