wide.dyads.to.edgelist.regex: Transform wide alter-alter data to an edge list. A regex...

View source: R/read.egonet.R

wide.dyads.to.edgelist.regexR Documentation

Transform wide alter-alter data to an edge list. A regex based implementation to convert a wide list to an edgelist.

Description

Transform wide alter-alter data to an edge list. A regex based implementation to convert a wide list to an edgelist.

Usage

wide.dyads.to.edgelist.regex(e.wide, aa.regex, netsize)

Arguments

e.wide

A dataframe containing the alter-alter relation data in the 'wide' format.

aa.regex

A Perl regular expression with name capture, intended to be run on column names and capturing via named capture the following regex groups: "attr", "src", and "tgt", representing the edge attribute being captured, the source (or the first alter identified), and the target (or the second alter identified) of the edge, respectively. See regex for more information.

netsize

Vector containing values of network size per ego.


egor documentation built on May 29, 2024, 12:10 p.m.