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
signed(incubA$IM)$s[1:2,1:2] |>
as.signed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.