Learn R Programming

multinets (version 0.2.2)

extract_mesolevel: Extract the meso level of a multilevel network

Description

Extract one of the three levels of a multilevel network. extract_highlevel will extract the higher level vertices and the edges between them, extract_lowlevel will extract the lower level vertices and the edges between them. On the other hand, extract_mesolevel will extract all the vertices but only the edges between vertices from different levels.

Usage

extract_mesolevel(x)

Arguments

x

a graph object. Must be a multilevel network.

Value

extract_highlevel and extract_lowlevel return a 1-mode network. All the vertices in the selected level and the edges between them. extract_mesolevel returns a bipartite (2-mode) network. All the vertices are kept. Only edges between vertices of different levels are kept. This is what the literature also calls an affiliation network.

Examples

Run this code
# NOT RUN {
organizations <- extract_highlevel(linked_sim)

individuals <- extract_lowlevel(linked_sim)

affiliations <- extract_mesolevel(linked_sim)

# }

Run the code above in your browser using DataLab