TxpResultList-class {toxpiR} | R Documentation |
List of TxpResult objects
Description
Extension of S4Vectors::SimpleList that holds only TxpResult objects.
Usage
TxpResultList(...)
## S4 method for signature 'TxpResultList'
duplicated(x)
as.TxpResultList(x)
Arguments
... |
TxpResult object to create |
x |
|
See Also
Examples
## Load example dataset & model; see ?TxpModel for building model objects
data(txp_example_input, package = "toxpiR")
data(txp_example_model, package = "toxpiR")
## Calculate scores for list of models; returns TxpResultList object
txpCalculateScores(model = TxpModelList(m1 = txp_example_model,
m2 = txp_example_model),
input = txp_example_input,
id.var = "name")
resLst <- txpCalculateScores(model = list(m1 = txp_example_model,
m2 = txp_example_model),
input = txp_example_input,
id.var = "name")
## duplicated
duplicated(resLst)
## Coercion
as(list(resLst[[1]], resLst[[2]]), "TxpResultList")
as.TxpResultList(list(res1 = resLst[[1]], res2 = resLst[[2]]))
as(resLst[[1]], "TxpResultList")
as.TxpResultList(resLst[[1]])
[Package toxpiR version 1.2.1 Index]