| onlyshared {iCOBRA} | R Documentation |
onlyshared slotAccessor and replacement functions for the onlyshared slot in a
COBRAPerformance or COBRAPlot object.
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
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
binary_truth = "status",
aspects = "fdrtpr")
head(onlyshared(cobraperf))