as.signed: Coerce to a Signed Object

as.signedR Documentation

Coerce to a Signed Object

Description

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

Usage

as.signed(x, lbs)

Arguments

x

a matrix representing the signed network

lbs

(optional) labels for the signed matrix

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

Value

The array as a Signed class

See Also

signed, semiring

Examples

# load the data
data("incubA")

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

multiplex documentation built on Sept. 30, 2024, 5:07 p.m.