Learn R Programming

iCOBRA (version 1.0.2)

truth: Accessor and replacement functions for truth slot

Description

Accessor and replacement functions for the truth slot in an COBRAData object.

Usage

truth(x, ...)

truth(x, ...) <- value

## S3 method for class 'COBRAData': truth(x)

## S3 method for class 'COBRAData,data.frame': truth(x) <- value

Arguments

x
An COBRAData object.
...
Additional arguments.
value
A data frame containing true assignments and/or scores for features, together with other feature annotations to use for stratification of performance calculations.

Value

  • The accessor function returns a data frame containing true assignments and/or scores for features, together with other feature annotations to use for stratification of performance calculations.

Examples

Run this code
data(cobradata_example)
head(truth(cobradata_example))

Run the code above in your browser using DataLab