item_exists: check if identifier touple already exists on SB

Description Usage Arguments Value Examples

View source: R/item_exists.R

Description

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

Usage

1
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

1
2
3
4
5
## 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 29, 2017, 7:40 p.m.