df.to.gbi: Data frame to GBI.

View source: R/df.to.gbi.R

df.to.gbiR Documentation

Data frame to GBI.

Description

Converts a data frame of individual associations into a group by individual matrix.

Usage

df.to.gbi(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.

Details

Several association indices are coputed on GBI.

Value

A group by individual matrix.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

See Also

assoc.indices

Examples

head(sim.grp)
df.to.gbi(sim.grp,scan=c('location','time'),id='ID')

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