BiodiversityDataset prototype description
Source:R/class-biodiversitydataset.R
BiodiversityDataset-class.Rd
BiodiversityDataset prototype description
Public fields
name
The default name of this dataset as
character
.id
A
character
with the unique id for this dataset.equation
A
formula
object containing the equation of how this dataset is modelled.family
The family used for this dataset as
character
.link
The link function used for this data as
character
.type
weight
A
numeric
containing custom weights per observation for this dataset.field_occurrence
A
character
with the name of the column name containing observations.data
Contains the observational data in
sf
format.use_intercept
A
logical
flag on whether intercepts are included for this dataset.pseudoabsence_settings
Optionally provided pseudoabsence settings.
Methods
Method new()
Initializes the object and creates an empty list
Usage
BiodiversityDataset$new(
name,
id,
equation,
family,
link,
type,
weight,
field_occurrence,
data,
use_intercept,
pseudoabsence_settings
)
Arguments
name
The default name of this dataset as
character
.id
A
character
with the unique id for this dataset.equation
A
formula
object containing the equation of how this dataset is modelled.family
The family used for this dataset as
character
.link
The link function used for this data as
character
.type
weight
A
numeric
containing custom weights per observation for this dataset.field_occurrence
A
character
with the name of the column name containing observations.data
Contains the observational data in
sf
format.use_intercept
A
logical
flag on whether intercepts are included for this dataset.pseudoabsence_settings
Optionally provided pseudoabsence settings.
Method print()
Print the names and properties of all Biodiversity datasets contained within
Method get_type()
Get type of the dataset.
Arguments
short
A
logical
flag if this should be formatted in shortform.
Returns
A character
with the type
Method get_column_occ()
Get field with occurrence information
Returns
A character
with the occurence field
Method get_data()
Get data from the object
Method get_observations()
Collect info statistics about number of observations
Returns
A numeric
with the number of observations.
Method mask()
Convenience function to mask all input datasets.