is_data_expr {GWENA} | R Documentation

## Determine if an object is a data_expr in sens of GWENA

### Description

Check an object to be a data.frame or a matrix compatible of genes and samples.

### Usage

    is_data_expr(data_expr)

### Arguments

`data_expr` | matrix or data.frame, expression data with genes as column and samples as row.

### Value

list, a boolean as first element and in second element NULL or the reason why boolean is set to FALSE

### Examples

    expr <- matrix(runif(15*40), 15)
    colnames(expr) <- paste0("gene_", seq_len(ncol(expr)))
    rownames(expr) <- paste0("gene_", seq_len(nrow(expr)))
    is_data_expr(expr)

[Package GWENA version 1.4.0 Index]