is_network: Determine if an object is a network

View source: R/utils.R

is_networkR 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)


Kumquatum/GWENA documentation built on July 7, 2023, 3:41 p.m.