onlyshared: Accessor and replacement functions for 'onlyshared' slot

onlysharedR 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))

markrobinsonuzh/iCOBRA documentation built on March 28, 2024, 2:01 p.m.