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/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.