This class describes the PredictorDataset and is used to store covariates within.
Public fields
id
The id for this collection as
character
.data
A predictor dataset usually as
SpatRaster
.name
A name for this object.
timeperiod
A timeperiod field
Methods
Method new()
Initializes the object and creates an empty list
Usage
PredictorDataset$new(id, data, ...)
Arguments
id
The id for this collection as
character
.data
A predictor dataset usually as
SpatRaster
....
Any other parameters found.
Method print()
Print the names and properties of all Biodiversity datasets contained within
Arguments
format
A
logical
flag on whether a message should be printed.
Method get_data()
Get a specific dataset
Arguments
df
logical
on whether data is to be returned asdata.frame
.na.rm
logical
ifNA
is to be removed from data.frame....
Any other parameters passed on.
Returns
A SpatRaster
or data.frame
.
Method get_time()
Get time dimension of object.
Returns
A vector
with the time dimension of the dataset.
Method get_projection()
Get Projection
Returns
A vector
with the geographical projection of the object.
Method mask()
Utility function to mask the predictor dataset by another dataset
Method set_data()
Add a new Predictor dataset to this collection
Arguments
x
character
of the new name to be stored.value
A new
SpatRaster
object.
Method rm_data()
Remove a specific Predictor by name
Arguments
x
character
of the predictor name to be removed.
Method summary()
Collect info statistics with optional decimals
Arguments
digits
numeric
Giving the rounding precision
Returns
A data.frame
summarizing the data.
Method has_derivates()
Indication if there are any predictors that are derivates of outers
Returns
A logical
flag.
Method plot()
Basic Plotting function