Skip to contents

Extracts the version number used by a Camera Trap Data Package object. This version number indicates what version of the Camtrap DP standard was used.

Usage

version(x)

Arguments

x

Camera Trap Data Package object, as returned by read_camtrapdp(). Also works on a Frictionless Data Package, as returned by frictionless::read_package().

Value

Camtrap DP version number (e.g. 1.0).

Details

The version number is derived as follows:

  1. The version attribute, if defined.

  2. A version number contained in x$profile, which is expected to contain the URL to the used Camtrap DP standard.

  3. x$profile in its entirety (can be NULL).

See also

Other accessor functions: deployments(), events(), locations(), media(), observations(), taxa()

Examples

x <- example_dataset()
version(x)
#> [1] "1.0"