An R6 class representing acoustic / vocal occurrence data from Passive Acoustic Monitoring (PAM).

Super class

PAMvieweR::Makara -> Occurrence

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.

Usage

Occurrence$new(connection, table, data = NULL)

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.

Usage

Occurrence$get_data()


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().


Method order()

Order rows using column values.

Usage

Occurrence$order(...)

Arguments

...

See arrange


Method filter()

Keep rows that match a condition.

Usage

Occurrence$filter(...)

Arguments

...

See filter


Method mutate()

Create, modify, and delete columns.

Usage

Occurrence$mutate(...)

Arguments

...

See mutate


Method select()

Select variables in a data frame.

Usage

Occurrence$select(...)

Arguments

...

See select


Method group()

Group by one or more variables.

Usage

Occurrence$group(...)

Arguments

...

See group_by


Method aggregate()

Summarise each group down to one row.

Usage

Occurrence$aggregate(...)

Arguments

...

See summarize


Method reset()

Resets the data.

Usage

Occurrence$reset()


Method print()

Prints the Occurrence R6 Object

Usage

Occurrence$print()


Method finalize()

What to do when you remove the Occurrence R6 object.

Usage

Occurrence$finalize()


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.