adjacency_matrix: Ajacency Matrix

Description Usage Arguments Value

View source: R/adjacency.R

Description

Creates an adjacency matrix from a bigram dataframe (see bigrams). The matrix's rows are the nodes and the columns are the neighbors.

Usage

1
adjacency_matrix(bigrams, binary = TRUE, left = FALSE)

Arguments

bigrams

Bigram dataframe form ocunR::bigrams()

binary

TRUE if binary, FALSE if frequency of bigram

left

TRUE if left direction, FALSE if right direction

Value

A matrix with the names of each morph/word as row/column names.


jpcyrino/ocunR documentation built on Dec. 21, 2021, 3:12 a.m.