is_network {GWENA} | R Documentation

## Determine if an object is a network

### Description

Check content of a given object to determine if it's a network, meaning a squared matrix of similarity score between genes.

### Usage

    is_network(network)

### Arguments

`network` | matrix or data.frame, object to test to be a network

### Value

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

### Examples

    net <- matrix(runif(40*40), 40)
    colnames(net) <- paste0("gene_", seq_len(ncol(net)))
    rownames(net) <- paste0("gene_", seq_len(nrow(net)))
    is_network(net)

[Package GWENA version 1.2.0 Index]