rem_edge_list: Format timestamped edge list for REM

View source: R/rem.R

rem_edge_listR Documentation

Format timestamped edge list for REM

Description

Convert a timestamped data frame into an edge list to be used with relevent rem.dyad() which requires a three column matrix: timestamp, head, tail. Timestamp data have to start near "0". Badge ids will be retrieved in ascending order and reset to start from 1..n. It is important that the order of entries in covariate vectors retrieved with rem_covars has the same ascending order.

Usage

rem_edge_list(df, rm_sup = T, replv = T, use_seq = F, ...)

Arguments

df

The sociometric dataframe, containing at least the Timestamp, Badge.ID, Other.ID columns

rm_sup

Logical. Remove duplicated values from proximity/face-to-face data frame where timestamps are identical

replv

Logical. Make sure that badge ids in dataframe start at 1...ns

use_seq

Logical. If Other.ID is missing, simulate Other.ID with Badge.ID of next row

Value

dataframe / edgelist with three columns only. Numeric Timestamp, head and tail vertex ids of corresponding edges.


jmueller17/sociometrics documentation built on March 20, 2024, 1:04 a.m.