onlyshared {iCOBRA} | R Documentation

## Accessor and replacement functions for `onlyshared` slot

### Description

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

### Usage

    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

    data(cobradata_example)
    cobraperf <- calculate_performance(cobradata_example,
                                       binary_truth = "status",
                                       aspects = "fdrtpr")
    head(onlyshared(cobraperf))

[Package iCOBRA version 1.15.1 Index]