Learn R Programming

DGM (version 1.7.4)

cor2adj: Threshold correlation matrix to match a given number of edges.

Description

Threshold correlation matrix to match a given number of edges.

Usage

cor2adj(R, n)

Arguments

R

correlation matrix.

n

number of edges.

Value

A thresholded matrix.