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)
Value
Camtrap DP version number (e.g. 1.0).
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().
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.