Learn R Programming

propr (version 4.2.6)

getAdj: Get Object as Adjacency Matrix

Description

This function uses getMatrix to return a propr or propd object as an adjacency matrix. The diagonal is set to 0.

Usage

getAdj(object, cutoff = 1)

Arguments

object

A propr or propd object.

cutoff

This argument indicates the value at which to cutoff the results. For "rho" and "cor", the function returns pairs with a value greater than the cutoff. For "theta", "phi", and "phs", the function returns pairs with a value less than the cutoff. Leave the argument as NA to return all results.

Value

An adjacency matrix.

Details

This function is faster than getAdjacency, but has fewer arguments to tailor results.