Skip to contents

Update a COBRAPerformance or COBRAPlot object generated by a previous version of the package to the latest version.

Usage

update_cobraperformance(object, quiet = FALSE)

Arguments

object

A COBRAPerformance or COBRAPlot object

quiet

Set to TRUE to disable messages listing the modifications that are applied to the object

Value

An updated COBRAPerformance or COBRAPlot object

Author

Charlotte Soneson

Examples

data(cobradata_example_sval)
cobradata <- cobradata_example_sval

cobraperf <- calculate_performance(cobradata, 
                                   binary_truth = "status", 
                                   aspects = "fpr")
#> column Method3 is being ignored for NBRS calculations
#> column Method3 is being ignored for FPR calculations
cobraperf <- update_cobraperformance(cobraperf)
#> Object up to date