onlyshared: Accessor and replacement functions for 'onlyshared' slot

Description Usage Arguments Value Author(s) Examples

Description

Accessor and replacement functions for the onlyshared slot in a COBRAPerformance or COBRAPlot object.

Usage

 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

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

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.

Value

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.

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr")
head(onlyshared(cobraperf))

iCOBRA documentation built on April 17, 2021, 6:07 p.m.