Learn R Programming

optmatch (version 0.10.8)

edgelist: Create EdgeList object

Description

If y is a named character vector, then the names should correspond to whatever in x would otherwise (i.e. if y were NULL) translate to the levels set of the nodes-representing columns, while the values themselves give the new levels.

Usage

edgelist(x, y = NULL)

Value

EdgeList

Arguments

x

object to convert to edgelist

y

named character vector giving levels for nodes-representing columns, or NULL

Author

Ben Hansen