grp.to.edgl: Linear group by individual data frame to dyadic data frame...

View source: R/grp.to.edgl.R

grp.to.edglR Documentation

Linear group by individual data frame to dyadic data frame (edge list)

Description

Converts linear group by individual data frame to a dyadic data frame (edge list)

Usage

grp.to.edgl(df, scan, id)

Arguments

df

a data frame of individual associations.

scan

a numeric or character vector representing one or more columns used as scan factors.

id

a numeric or character vector indicating the column holding ids of individuals.

Value

a data frame with individual associations (symmetric data) according to the scan variable(s) declared by the user.

Examples

grp.to.edgl(sim.grp, scan = c('day', 'location'), id = 'ID')

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.