View source: R/df.to.gbi.focal.R
df.to.gbi.focal | R Documentation |
Converts a data frame of individual associations into a group by individual matrix.
df.to.gbi.focal(df, focal, alters, ctrl)
df |
a data frame in which to include a control column. |
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. |
Control factors are used in permutation approaches to constrain their permutations.
The same data frame input with an extra column named 'control', representing the control factors.
Sebastian Sosa, Ivan Puga-Gonzalez.
df.to.gbi.focal(df=sim.focal.undirected,focal='focal', alters='alter',ctrl='nfocal')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.