to_adjacency_matrix: Convert a data frame to an adjacency matrix

Description Usage Arguments Value

View source: R/to_adjacency_matrix.R

Description

Convert a data frame of pairwise interactions into an adjacency matrix between all objects.

Usage

1

Arguments

dat

a data frame with the objects that are interacting in the first two columns

Value

a square adjacency matrix with all unique values of the first two columns of dat as row and column names


skinnider/flavin documentation built on May 6, 2019, 10:49 a.m.