Description Usage Arguments Value Author(s) See Also Examples
A function that sends and retrieves queries to the specified datasources and optionally performs sanity checks in terms of returned column names. If can.fail
is TRUE, an empty data.frame
will be returned if a query does not return a result. Otherwise program execution is halted.
1 | retrieve.param.query(sample.id.list, db.con, param.obj, query.func, exp.col = NULL, can.fail=FALSE)
|
sample.id.list |
Either a |
db.con |
An object inherited from |
param.obj |
A |
query.func |
A method generating the function that generates the SQL query to be sent. Needs to take the |
exp.col |
A |
can.fail |
A |
A data.frame
containing the results of the query.
Daniel Bottomly
1 2 3 4 5 6 7 8 9 | if(require(RSQLite) && require(HitWalkerData))
{
data(params)
db.con <- dbConnect("SQLite", hitwalker.db.path())
sample.id.list <- reconcile.sample.name("08-00102", db.con, examp.prior.param)
query.func <- hitQuery
query.res <- retrieve.param.query(sample.id.list, db.con, examp.prior.param, query.func, exp.col = NULL, can.fail=FALSE)
head(query.res)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.