remove_weights.default: Removes the weights of all connections

Description Usage Arguments Value Examples

View source: R/generics.R

Description

Removes the weights of all connections

Usage

1
2
## Default S3 method:
remove_weights(x, ...)

Arguments

x

Either a 'network', 'network_module', or 'matrix' object.

...

Additional arguments.

Value

The modified object.

Examples

1
2
3
4
5
6
7
# Create a random network with 10 nodes and add random edge weights.
nw <- random_network(10)
nw <- gen_partial_correlations(nw)
is_weighted(nw)
# Remove the edge weights from the network.
nw <- remove_weights(nw)
is_weighted(nw)

SeqNet documentation built on July 9, 2021, 9:08 a.m.