parse_packageId: Parse packageId

View source: R/utils.R

parse_packageIdR Documentation

Parse packageId

Description

Take the packageId field in EML and break it down into scope, id, and revision number. If packageId does not conform to the scope, id, revision number pattern, the function will just return the whole ID in the "id" field and NAs in the "scope" and "rev" fields.

Usage

parse_packageId(full_id)

Arguments

full_id

(character) Package ID in EML style, e.g. "knb-lter-mcr.1.1"

Value

List of three named items: "scope", "id", "rev".


atn38/MetaInbase documentation built on Feb. 26, 2023, 9:56 a.m.