Learn R Programming

multiplex (version 2.3)

as.signed: Coerce to a Signed Object

Description

A generic function for coercing an object to a Signed class.

Usage

as.signed(x, labels = NULL)

Arguments

x
a matrix representing the signed network
labels
(optional) labels for the signed matrix

Value

The array as a Signed class

Details

Since the semiring function requires an object with a `Signed' class, this function produces this class object from an array representing the signed network

See Also

signed, semiring

Examples

Run this code
## Load the data
data("incubA")

## Coerce parts of the signed matrix with two types of relations
as.signed(signed(incubA$IM)$s[1:2,1:2])

Run the code above in your browser using DataLab