Description Usage Arguments Value Examples
SyDBgetValFforID
documentation in progress ...
1 | SyDBgetValForID(id, att, tbl, db, all = FALSE)
|
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. |
(character) a vector of values, or NA where none were found
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.