update_cobradata {iCOBRA} | R Documentation

## Update `COBRAData` object to the current version of the class format

### Description

Update a `COBRAData` object generated by a previous version of the package to the latest version.

### Usage

    update_cobradata(object, quiet = FALSE)

### Arguments

`object` | A `COBRAData` object
`quiet` | Set to TRUE to disable messages listing the modifications that are applied to the object

### Value

An updated `COBRAData` object

### Author(s)

Charlotte Soneson

### Examples

    ## Generate COBRAData object
    set.seed(123)
    pval <- data.frame(m1 = runif(100), m2 = runif(100),
                       row.names = paste0("F", 1:100))
    truth <- data.frame(status = round(runif(100)),
                        row.names = paste0("F", 1:100))
    cobradata <- COBRAData(pval = pval, truth = truth)

    ## Update object if needed
    cobradata <- update_cobradata(cobradata)

[Package iCOBRA version 1.22.2 Index]