find_newest_object: Find the newest object within the given set of objects

View source: R/util.R

find_newest_objectR Documentation

Find the newest object within the given set of objects

Description

Find the newest object, based on dateUploaded, within the given set of objects.

Usage

find_newest_object(node, identifiers, rows = 1000)

Arguments

node

(MNode/CNode) The Member Node to query.

identifiers

(character) One or more identifiers.

rows

(numeric) Optional. Specify the size of the query result set.

Value

(character) The PID of the newest object. In the case of a tie (very unlikely) the first element, in natural order, is returned.

Examples

## Not run: 
mn <- MNode(...)
find_newest_object(mn, c("PIDX", "PIDY", "PIDZ"))

## End(Not run)

NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.