Description Usage Arguments Value See Also Examples
The function allows a user-friendly method for extracting the information about selected nodes of the multiplex network.
1 | nodes.multiplex(obj, index = 1:nrow(obj$nodes), label = FALSE)
|
obj |
An object of class |
index |
A vector of the nodes' ID selected for the extraction. By default, the vector contains the IDs of all the nodes of the network. |
label |
|
A vector
with the nodes selected by the index
argument.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Loading Aarhus CS Department dataset.
data(aarhus_mplex)
# Creating the multiplex object using the dataset loaded into aarhus_mplex object.
mplexObj <- create.multiplex(nodes = aarhus_mplex$nodes,
layersNames = aarhus_mplex$layerNames,
layer1 = aarhus_mplex$L1,
type1 = "undirected",
aarhus_mplex$L2,
aarhus_mplex$L3,
aarhus_mplex$L4,
aarhus_mplex$L5
)
# Extracting the information about the nodes (employees) of the network:
nodes.multiplex(mplexObj)
# Information can be extracted even for some specific nodes (their selection is
# randomized in the following example), selected with the 'indexNode' argument,
# on their label selected with 'label' argument:
nodes.multiplex(mplexObj, index = sample(1:length(nodes.multiplex(mplexObj)), 10), label = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.