Skip to contents

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

Usage

version(x)

Arguments

x

GeoLocator Data Package object, as returned by create_gldp(). Also works on a Frictionless Data Package, as returned by read_package().

Value

GeoLocator 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 GeoLocator DP standard.

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