as.signed | R Documentation |
A generic function for coercing an object to a Signed
class.
as.signed(x, lbs)
x |
a matrix representing the signed network |
lbs |
(optional) labels for the signed matrix |
Since the semiring
function requires an object with a 'Signed
' class, this function produces this class object from an array representing the signed network
The array as a Signed
class
signed
, semiring
## 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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.