View source: R/oxy-SSNtools.R View source: R/SSNtools.R
processEdge | R Documentation |
convert a R dataframe with two columns (Source name and Target name) to correct formats for following algorithms
processEdge(data, source_name, target_name, weight_name = NA)
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
a list of lists. Each sublist contains all info of an edge
## Not run:
edges = processEdge(user_edges, 'Source', 'Target')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.