Update COBRAData object to the current version of the class format
Source: R/COBRAData.R
update_cobradata.RdUpdate a COBRAData object generated by a previous version of the
package to the latest version.
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)
#> Object up to date