Learn R Programming

iCOBRA (version 1.0.2)

corr: Accessor and replacement functions for corr slot

Description

Accessor and replacement functions for the corr slot in an COBRAPerformance or COBRAPlot object.

Usage

corr(x, ...)

corr(x, ...) <- value

## S3 method for class 'COBRAPerformance': corr(x)

## S3 method for class 'COBRAPerformance,data.frame': corr(x) <- value

## S3 method for class 'COBRAPlot,data.frame': corr(x) <- value

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving correlation values for each method and each stratification level.

Value

  • The accessor function returns a data frame giving correlation values for each method and each stratification level.

Examples

Run this code
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example, cont_truth = "logFC",
                                   aspects = "corr")
head(corr(cobraperf))

Run the code above in your browser using DataLab