item_exists: check if identifier touple already exists on SB

View source: R/item_exists.R

item_existsR Documentation

check if identifier touple already exists on SB

Description

returns TRUE if touple already belongs to a sciencebase item, FALSE if not

Usage

item_exists(scheme, type, key, ..., session = current_session())

Arguments

scheme

the identifier scheme

type

the identifier type

key

the identifier key

...

Additional parameters are passed on to GET

session

an SB session

Value

boolean for whether item exists

Examples

## Not run: 
item_exists('mda_streams','ts_doobs','nwis_01018035')
item_exists('mda_streams','site_root','nwis_01018035')

## End(Not run)

sbtools documentation built on May 1, 2023, 1:07 a.m.