df.to.gbi | R Documentation |
Converts a data frame of individual associations into a group by individual matrix.
df.to.gbi(df, scan, id)
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. |
Several association indices are coputed on GBI.
A group by individual matrix.
Sebastian Sosa, Ivan Puga-Gonzalez.
assoc.indices
head(sim.grp)
df.to.gbi(sim.grp,scan=c('location','time'),id='ID')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.