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.
transformed
Saves whether the predictors have been transformed somehow.
timeperiod
A timeperiod field
Methods
Method new()
Initializes the object and creates an empty list
Usage
PredictorDataset$new(id, data, transformed = FALSE, ...)
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 crop_data()
Utility function to clip the predictor dataset by another dataset
Arguments
pol
A
sf
object used for cropping the dataapply_time
A
logical
flag indicating if time should be acknowledged in cropping.
Method mask()
Utility function to mask the predictor dataset by another dataset
Method set_data()
Add a new Predictor dataset to this collection
Arguments
value
A new
SpatRaster
orstars
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