An R6 class representing acoustic / vocal occurrence data from Passive Acoustic Monitoring (PAM).
Public fields
species_id
A vector of species IDs, see data table PAGROUP.S_SPECIES
.
pam_data
The data.
Methods
Method new()
Initializes the Makara R6 object.
Arguments
connection
DB connection
table
Table or view name
data
tibble
or data.frame
object
Method get_data()
Queries the DB using an SQL statement and fetches the data into R.
Method set_data()
Manually set data in an Occurrence R6 class.
Usage
Occurrence$set_data(new_data)
Arguments
new_data
tibble
or data.frame
Method where_species()
Modifies the where clause of the SQL statement used by get_data()
to include species IDs.
Usage
Occurrence$where_species(species_id)
Arguments
species_id
Vector of species IDs (see data table PAGROUP.S_SPECIES
)
Details
This method modifies the SQL statement used to query the DB.
If changed, you must re-execute Occurrence$get_data()
.
Order rows using column values.
Keep rows that match a condition.
Method mutate()
Create, modify, and delete columns.
Method select()
Select variables in a data frame.
Method group()
Group by one or more variables.
Summarise each group down to one row.
Usage
Occurrence$aggregate(...)
Method reset()
Resets the data.
Prints the Occurrence R6 Object
Method finalize()
What to do when you remove the Occurrence R6 object.
Method clone()
The objects of this class are cloneable with this method.
Usage
Occurrence$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.