Learn R Programming

NetworkToolbox (version 1.4.2)

binarize: Binarize Network

Description

Converts weighted adjacency matrix to a binarized adjacency matrix

Usage

binarize(A)

Arguments

A

An adjacency matrix of network data (or an array of matrices)

Value

Returns an adjacency matrix of 1's and 0's

Examples

Run this code
# NOT RUN {
# Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A

neoB <- binarize(A)

# }

Run the code above in your browser using DataLab