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

Description Usage Arguments Value Author(s) Examples

View source: R/COBRAData.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

iCOBRA documentation built on April 17, 2021, 6:07 p.m.