BiodiversityDatasetCollection super class description
Source:R/class-biodiversitydataset.R
BiodiversityDatasetCollection-class.Rd
Acts a container for a specified set of BiodiversityDataset contained within. Functions are provided to summarize across the BiodiversityDataset-class objects.
Public fields
data
A
list
ofBiodiversityDataset
objects.name
The default name of this collection as
character
.
Methods
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_types()
Types of all biodiversity datasets included in this
Arguments
short
A
logical
flag whether types should be in short format.
Returns
A character
vector.
Method get_names()
Get names and format them if necessary
Arguments
format
A
logical
flag whether names are to be formatted
Returns
A character
vector.
Method set_data()
Add a new Biodiversity dataset to this collection.
Arguments
x
A
character
with the name or id of this dataset.value
A BiodiversityDataset
Method get_data_object()
Get a specific Biodiversity dataset by id
Arguments
id
A
character
with a given id for the dataset.
Method get_data()
Get all biodiversity observations from a given dataset.
Arguments
id
A
character
with a given id for the dataset.
Method get_coordinates()
Get coordinates for a given biodiversity dataset. Else return a wkt object
Arguments
id
A
character
with a given id for the dataset.
Method mask()
Convenience function to mask all input datasets.
Method rm_data()
Remove a specific biodiversity dataset by id
Arguments
id
A
character
with a given id for the dataset.
Method length()
Number of Biodiversity Datasets in connection
Returns
A numeric
with the number of datasets.
Method get_observations()
Get number of observations of all datasets
Returns
A numeric
with the number of observations across datasets.
Method get_equations()
Get equations from all datasets
Returns
A list
vector with all equations across datasets.
Method get_families()
Get families from datasets.
Returns
A list
vector with all families across datasets.
Method get_links()
Get custom link functions
Returns
A list
vector with all link functions across datasets.
Method get_columns_occ()
Get fields with observation columns
Returns
A list
vector with the names of observation columns.
Method get_weights()
Get the weights across datasets.
Returns
A list
vector with the weights if set per dataset.
Method get_ids()
Get ids of all assets in the collection.
Returns
A list
vector with the ids of all datasets.
Method get_id_byType()
Search for a specific biodiversity dataset with type
Arguments
type
A
character
for a given data type.
Returns
A character
with the id(s) of datasets with the given type.
Method get_id_byName()
Get id by name
Arguments
name
A
character
for a given name.
Returns
A character
with the id(s) of datasets with the given name.
Method show_equations()
Show equations of all datasets
Arguments
msg
A
logical
on whether to use print a message instead.
Returns
Shows equations on screen or as character
.
Method plot()
Plot the whole collection