graph_from_adv_data: Convert advanced format data into lists of edges and vertices

View source: R/graph_from_adv_data.R

graph_from_adv_dataR Documentation

Convert advanced format data into lists of edges and vertices

Description

Converts advanced format network data (a la ORA) into an igraph object

Usage

graph_from_adv_data(
  advanced_format_data,
  sourcenodesetname,
  sourcenodename,
  targetnodesetname,
  targetnodename,
  network,
  frequency,
  directed = TRUE
)

Arguments

advanced_format_data

data in advanced file format. Should be a data.frame.it Should have the following columns, at the least:

  • "Source nodeset name"

  • "Source node name"

  • "Target nodeset name"

  • "Target node name"

  • "Frequency"

  • "Network name"

  • "CHILD_ID" but if the complete advanced file is supplied, the other columns will not be used.

sourcenodesetname

unqouted column name

sourcenodename

unqouted column name

targetnodesetname

unqouted column name

targetnodename

unqouted column name

network

unqouted column name

frequency

unqouted column name

directed

Logical scalar, whether or not to create a directed graph. (passed to igraph::graph_from_data_frame())

Value

an igraph graph object

Author(s)

Chris Friedman, chris.s.friedman@gmail.com

Examples

graph_from_adv_data(advanced_format_data)


chris-s-friedman/Friedman documentation built on Feb. 12, 2023, 8:02 p.m.