processEdge: processEdge

View source: R/oxy-SSNtools.R View source: R/SSNtools.R

processEdgeR Documentation

processEdge

Description

convert a R dataframe with two columns (Source name and Target name) to correct formats for following algorithms

Usage

processEdge(data, source_name, target_name, weight_name = NA)

Arguments

data

user_edges, which should be a R dataframe that contains a column of source (string of node label) and a column of target (string of node label)

source_name

column name (string) that contains the source node labels

target_name

column name (string) that contains the target node labels

weight_name

(optional) column name (float) that contains edge weight if available

Details

DETAILS

Value

a list of lists. Each sublist contains all info of an edge

Examples

## Not run: 
edges = processEdge(user_edges, 'Source', 'Target')

## End(Not run)

friendlycities-gatech/SSNtools documentation built on Sept. 13, 2023, 10:40 a.m.