Learn R Programming

sbtools (version 1.3.2)

item_get_parent: 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, ...)

Value

An item object representing the parent of the supplied item.

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.

Examples

Run this code
# \donttest{
item_get_parent("57976a0ce4b021cadec97890")

item_get_parent(item_get("57976a0ce4b021cadec97890"))
# }

Run the code above in your browser using DataLab