Learn R Programming

CooRTweet (version 1.5.0)

generate_network: generate_network

Description

Take the results of coordinated content detection and generate a network from the data. This function generates a two-mode (bipartite) incidence matrix first, and then projects the matrix to a weighted adjacency matrix.

Usage

generate_network(x, intent = c("users", "content", "objects"))

Value

A weighted, undirected network (igraph object) where the vertices (nodes) are users (or content_ids) and edges (links) are the membership in coordinated groups (object_id)

Arguments

x

a data.table (result from detect_coordinated_groups) with the Columns: object_id, id_user, id_user_y, content_id, content_id_y, timedelta

intent

the intended network. The option "users" generates a network of users who are connected over the same content that they share (default). Option "content" generates a network based on content ids. Option "objects" generates a network of the coordinated content (object_id) that is connected via the users.