df.to.gbi {ANTs}R 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')

[Package ANTs version 0.0.16 Index]