edgedf: Expand adjacency information to an edge table

Description Usage Arguments Details Value Author(s) Examples

View source: R/edgedf.R

Description

Expand adjacency information from an adjacency matrix or a sprof data structure to an edge table

Usage

1
edgedf(data, counts = TRUE, na.rm = TRUE,  no.name="<nn>")

Arguments

data

an adjacency matrix or a sprof data structure.

counts

include a column of counts

na.rm

remove lines with a count NA.

no.name

If not null: replacement for empty strings as name.

Details

The adjacency matrix is flattened. Lines with a count zero are eliminated.

Value

A data frame.

from

Name of from node.

to

Name of to node.

count

optional. Frequencies of edges.

Author(s)

Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>

Examples

1
2

sprof documentation built on May 21, 2017, 12:27 a.m.

Search within the sprof package
Search all R packages, documentation and source code