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.
Arguments
- x
Camera Trap Data Package object, as returned by
read_camtrapdp()
. Also works on a Frictionless Data Package, as returned byfrictionless::read_package()
.
Details
The version number is derived as follows:
The
version
attribute, if defined.A version number contained in
x$profile
, which is expected to contain the URL to the used Camtrap DP standard.x$profile
in its entirety (can beNULL
).
Examples
x <- example_dataset()
version(x)
#> [1] "1.0.1"