SyDBgetValForID: 'SyDBgetValForID' fetch an an attribute value for an ID from...

Description Usage Arguments Value Examples

Description

SyDBgetValFforID documentation in progress ...

Usage

1
SyDBgetValForID(id, att, tbl, db, all = FALSE)

Arguments

id

(character) return values matching IDs in "id" ...

att

(character) ... from column "att" ...

tbl

(character) ... of the table "tbl" ...

db

(character) in database "db".

all

(logical) if TRUE, then NA will be added to the returned vector, one for each element in "id" that was not found. If FALSE (default), only values for matching IDs will be returned, i.e. the length of the input is not preserved.

Value

(character) a vector of values, or NA where none were found

Examples

1
2
3
4
5
6
## Not run: 
# get the IDs for the systems with code "notAnID" and "PHALY". Element 1 is NA.
myIDs <- c("notAnID", "give.jams-1d8-648b-1e12-6a9f-65421424affe")
SyDBgetValForID(myIDs, "code", "system", mySDB, all = TRUE)

## End(Not run)

hyginn/BCB420.2019.ESA documentation built on May 29, 2019, 1:23 p.m.