is_network: Determine if an object is a network

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1
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

1
2
3
4
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)

GWENA documentation built on Feb. 17, 2021, 2:01 a.m.