maxsplit: Accessor and replacement functions for 'maxsplit' slot

maxsplitR Documentation

Accessor and replacement functions for maxsplit slot

Description

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

Usage

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

data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr", splv = "expr_cat",
                                   maxsplit = 3)
maxsplit(cobraperf)

markrobinsonuzh/iCOBRA documentation built on Nov. 7, 2024, 7:11 a.m.