
BiodiversityDataset prototype description
Source:R/class-biodiversitydataset.R
BiodiversityDataset-class.RdBiodiversityDataset prototype description
Public fields
nameThe default name of this dataset as
character.idA
characterwith the unique id for this dataset.equationA
formulaobject containing the equation of how this dataset is modelled.familyThe family used for this dataset as
character.linkThe link function used for this data as
character.typeweightA
numericcontaining custom weights per observation for this dataset.field_occurrenceA
characterwith the name of the column name containing observations.dataContains the observational data in
sfformat.use_interceptA
logicalflag on whether intercepts are included for this dataset.pseudoabsence_settingsOptionally 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
nameThe default name of this dataset as
character.idA
characterwith the unique id for this dataset.equationA
formulaobject containing the equation of how this dataset is modelled.familyThe family used for this dataset as
character.linkThe link function used for this data as
character.typeweightA
numericcontaining custom weights per observation for this dataset.field_occurrenceA
characterwith the name of the column name containing observations.dataContains the observational data in
sfformat.use_interceptA
logicalflag on whether intercepts are included for this dataset.pseudoabsence_settingsOptionally 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
shortA
logicalflag 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.