maxsplit: Accessor and replacement functions for 'maxsplit' slot

Description Usage Arguments Value Author(s) Examples

Description

Accessor and replacement functions for the maxsplit slot in a COBRAPerformance or COBRAPlot object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
maxsplit(x, ...)

maxsplit(x, ...) <- value

## S4 method for signature 'COBRAPerformance'
maxsplit(x)

## S4 replacement method for signature 'COBRAPerformance,numeric'
maxsplit(x) <- value

## S4 replacement method for signature 'COBRAPlot,numeric'
maxsplit(x) <- value

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

Additional arguments.

value

A numeric value giving the maximal number of strata to retain.

Value

The accessor function returns a numeric value giving the maximal number of strata to retain.

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr", splv = "expr_cat",
                                   maxsplit = 3)
maxsplit(cobraperf)

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