long_to_wide: Reshape dyadic network data from long (ij, i != j) to wide...

Description Usage Arguments Value

View source: R/reshape_dyadic_data.R

Description

Reshape dyadic network data from long (ij, i != j) to wide (ij, i<j)

Usage

1
2
3
long_to_wide(links, col_sender, col_receiver, upper_triangle = TRUE,
  nodes = unique(links[[col_sender]]),
  ij_variables = setdiff(colnames(links), c(col_sender, col_receiver)))

Arguments

links

network data in long format

col_sender

name of column containing the sender of the link

col_receiver

name of column containing the receiver of the link

upper_triangle

=TRUE (default) wide format respects i<j, =FALSE then i != j but each row contains information about everything in dyad

nodes

all node indices

ij_variables

variables that will be reported as dyad information

Value

network data in wide format


adzemski/netprobitFE documentation built on May 17, 2019, 11:40 a.m.