truth {iCOBRA} | R Documentation

## Accessor and replacement functions for `truth` slot

### Description

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

### Usage

    truth(x, ...)

    truth(x, ...) <- value

    ## S4 method for signature 'COBRAData'
    truth(x)

    ## S4 replacement method for signature 'COBRAData,data.frame'
    truth(x) <- value

### Arguments

`x` | A `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.

### Author(s)

Charlotte Soneson

### Examples

    data(cobradata_example)
    head(truth(cobradata_example))

[Package iCOBRA version 1.8.0 Index]