lastnetN: Get network for last N interactions between each pair of...

Description Usage Arguments Value Examples

View source: R/lastnetN.R

Description

Get network for last N interactions between each pair of nodes

Usage

1
lastnetN(df, N = 3, all = FALSE)

Arguments

df

a dataframe with two variables, winners and losers

N

the number of last interactions to get

all

If = FALSE then generates network based on one directed edge with clear winner being individual with highest wins from last N interactions between each pair. If = TRUE then keeps uses all edges from last N interactions between each pair.

Value

a list with each element being the network object derived from the last N interactions for each pair of nodes up to that row of the dataframe

Examples

1
lastnetN(ladybugs[,2:3],N=3)

jalapic/hierformR documentation built on May 18, 2019, 11:18 a.m.