Learn R Programming

migraph (version 0.6.6)

project: Projecting two-mode objects into one-mode objects

Description

These functions 'project' or convert a two-mode object in any format -- tidygraph, igraph, or matrix -- into a corresponding one-mode object.

Usage

project_rows(object)

project_cols(object)

Arguments

object

A matrix, igraph graph or tidygraph tbl_graph object.

Details

project_rows() results in a weighted one-mode object that retains the row nodes from a two-mode object, and weights the ties between them on the basis of their joint ties to nodes in the second mode (columns).

project_cols() results in a weighted one-mode object that retains the column nodes from a two-mode object, and weights the ties between them on the basis of their joint ties to nodes in the first mode (rows).

Examples

Run this code
# NOT RUN {
project_rows(southern_women)
project_cols(southern_women)
# }

Run the code above in your browser using DataLab