mat2vec.ix: Auxiliary function, gives mask for matrix for directed,...

View source: R/matrixoperations.R

mat2vec.ixR Documentation

Auxiliary function, gives mask for matrix for directed, undirected etc.

Description

Auxiliary function, gives mask for matrix for directed, undirected etc.

Usage

mat2vec.ix(mat, directed, selfloops)

Arguments

mat

matrix

directed

a boolean argument specifying whether object is directed or not.

selfloops

a boolean argument specifying whether the model should incorporate selfloops.

Value

a boolean matrix that can be used to mask adjacency matrices.

Examples

data('adj_karate')
mat2vec.ix(adj_karate, FALSE, FALSE)


gi0na/r-ghypernet documentation built on April 13, 2024, 9:30 a.m.