Description Usage Arguments Value Author(s) See Also
Write the data file for GS3.
1 2 | writeDataForGs3(x, file, inds, col.id = 1, col.traits = 2,
binary.traits = FALSE)
|
x |
data frame containing individual identifiers (names of parameter "inds"), trait values (possibly several traits), covariables and cross-classified factors. Missing data coded as "NA" will be replaced by "0" if it is in a 'trait' column and the trait is binary, and by "-9999" otherwise. |
file |
path to the text file to which x will be written |
inds |
named vector with values from 1 to I and names the corresponding individual identifiers; this very same vector should also be used with |
col.id |
column index of the individual identifiers in x |
col.traits |
column indices of traits in x |
binary.traits |
logical vector indicating if traits are binary or not (should be of the same length as col.traits) |
nothing
Timothee Flutre
writeGenosForGs3
, writeConfigForGs3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.