item_get_parent: Get an item's parent ID

View source: R/item_get.R

item_get_parentR Documentation

Get an item's parent ID

Description

Retrieves the parent of a supplied item based on the ScienceBase item tree hierarchy.

Usage

item_get_parent(sb_id, ...)

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

...

Additional parameters are passed on to GET, POST, HEAD, PUT.

Value

An item object representing the parent of the supplied item.

Examples


item_get_parent("4f4e4b24e4b07f02db6aea14")

item_get_parent(item_get("4f4e4b24e4b07f02db6aea14"))


USGS-R/sbtools documentation built on Feb. 21, 2024, 10:15 a.m.