update_cobradata: Update 'COBRAData' object to the current version of the class...

View source: R/COBRAData.R

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

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