R: Get Object as Adjacency Matrix

getAdjacency {propr} | R Documentation

## Get Object as Adjacency Matrix

### Description

This function uses `getNetwork` to return a `propr` or `propd` object as an adjacency matrix. The diagonal is set to 1.

### Usage

    getAdjacency(object, cutoff = NA, include = NA, or = TRUE)

### 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.
`include` | This argument indicates which features by name should belong to a pair for that pair to get included in the results. Subset performed by `Partner %in% subset | Pair %in% subset`.
`or` | A boolean. If `FALSE`, `include` subsets by `Partner %in% subset & Pair %in% subset`.

### Value

An adjacency matrix.

[Package propr version 4.1.1 Index]