Learn R Programming

iCOBRA (version 1.0.2)

onlyshared: Accessor and replacement functions for onlyshared slot

Description

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

Usage

onlyshared(x, ...)

onlyshared(x, ...) <- value

## S3 method for class 'COBRAPerformance': onlyshared(x)

## S3 method for class 'COBRAPerformance,logical': onlyshared(x) <- value

## S3 method for class 'COBRAPlot,logical': onlyshared(x) <- value

Arguments

x
An 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.

Examples

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

Run the code above in your browser using DataLab