Description Usage Arguments Value Author(s) Examples
Accessor and replacement functions for the onlyshared
slot in a
COBRAPerformance
or COBRAPlot
object.
1 2 3 4 5 6 7 8 9 10 11 12 | onlyshared(x, ...)
onlyshared(x, ...) <- value
## S4 method for signature 'COBRAPerformance'
onlyshared(x)
## S4 replacement method for signature 'COBRAPerformance,logical'
onlyshared(x) <- value
## S4 replacement method for signature 'COBRAPlot,logical'
onlyshared(x) <- value
|
x |
A |
... |
Additional arguments. |
value |
A logical indicating whether only features that are shared between result and truth are retained, or if all features in the truth are used. |
The accessor function returns a logical indicating whether only features that are shared between result and truth are retained, or if all features in the truth are used.
Charlotte Soneson
1 2 3 4 5 | data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
binary_truth = "status",
aspects = "fdrtpr")
head(onlyshared(cobraperf))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.