get_effort: Get effort

View source: R/get_effort.R

get_effortR Documentation

Get effort

Description

Gets the effort (deployment duration) per deployment.

Usage

get_effort(
  package = NULL,
  ...,
  unit = "hour",
  datapkg = lifecycle::deprecated()
)

Arguments

package

Camera trap data package object, as returned by read_camtrap_dp().

...

filter predicates

unit

Time unit to use while returning deployment effort (duration). One of:

  • second

  • minute

  • hour

  • day

  • month

  • year

datapkg

Deprecated. Use package instead.

Value

A tibble data frame with following columns:

  • deploymentID: Deployment unique identifier.

  • effort: Effort expressed in the unit passed by parameter unit.

  • unit: The unit used to express the effort. One of the values available for parameter unit.

  • effort_duration: A duration object (duration is a class from lubridate package).

See Also

Other exploration functions: get_cam_op(), get_custom_effort(), get_n_individuals(), get_n_obs(), get_n_species(), get_rai(), get_rai_individuals(), get_record_table(), get_scientific_name(), get_species()

Examples

# Efforts expressed in hours
get_effort(mica)

# Effort expressed as days
get_effort(mica, unit = "day")

inbo/camtraptor documentation built on June 2, 2025, 5:17 a.m.