AdjacencyMatrix: Adjacency Matrix

Description Usage Arguments Value

Description

Shape a numeric column of a data frame or tibble into a square adjacency matrix.

Usage

1
AdjacencyMatrix(x, ..., weights = rlang::missing_arg())

Arguments

x

A data frame or tibble.

...

Unquoted basenames that are used to arrange the rows of x and to form the rownames of the returned matrix. For example, if ... = a, b, c, then the rows of x are first arranged by a_i, b_i, c_i, a_j, b_j, c_j; and the row names of the returned matrix match the pattern "{a}_{b}_{c}".

weights

The unquoted name of a numeric column in x whose values will be shaped into a square adjacency matrix.

Value

A numeric matrix.


patrickreidy/phoneigen documentation built on May 20, 2019, 10:22 p.m.