getEdgeLabel: Obtain labels of edges in a network

View source: R/getEdgeLabel.R

getEdgeLabelR Documentation

Obtain labels of edges in a network

Description

The 'getEdgeLabel' function generates the labels of edges in a network upon names of the nodes in the network.

Usage

getEdgeLabel(node, sep = "-")

Arguments

node

A numeric or character vector, which contains the names of all nodes in a network.

sep

The seperation pattern. Default is "-".

Value

A character vector of all edge labels for each network.

Examples

getEdgeLabel(c(1:10, 12:20))
getEdgeLabel(paste("ROI", 1:5, sep = ""))
# In COBRE data
getEdgeLabel(c(1:74, 76:264))


Mengbo-Li/brainClass documentation built on March 16, 2023, 12:06 p.m.