makeLinks: Build an asymmetric link matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Creates an asymmetric link matrix from provided time points.

Usage

1
makeLinks(tp, link0 = TRUE, dimnames = TRUE)

Arguments

tp

numeric vector of sorted time points

link0

logical; should the link from t[0] be included?

dimnames

logical; should dimnames be attached to the link matrix?

Value

binary matrix of links between time points. The object is a square asymmetric matrix with length(tp) rows and columns. Rows represent the tp time points, and columns are the network links between timepoints.

Author(s)

Gavin L. Simpson

See Also

makeWeights for a matching weight matrix.

Examples

1
2
tp <- seq_len(10)
makeLinks(tp)

gavinsimpson/temporalEF documentation built on May 16, 2019, 10:11 p.m.