MergeEdgelists {dils}R Documentation

Combine edgelists into a single data.frame

Description

Given two or more edgelists, create a single edgelist with multiple columns, two for the from and to nodes and one for the weights from each constituent network.

Usage

  MergeEdgelists(...)

Arguments

...

data.frames, edgelists to be merged.

Value

data.frame, single multinetwork edgelist

Author(s)

Stephen R. Haptonstahl srh@haptonstahl.org

References

http://www.haptonstahl.org/R

See Also

EdgelistFill

Examples

edgelist1 <- data.frame(expand.grid(letters[1:2], letters[1:2]),
                        uniform=runif(4))
edgelist2 <- data.frame(v1=c("a", "a"), v2=c("a", "b"), manual=c(.3, .5))
MergeEdgelists(edgelist1, edgelist2)

[Package dils version 0.8.1 Index]