writeDataForGs3: Write data

Description Usage Arguments Value Author(s) See Also

Description

Write the data file for GS3.

Usage

1
2
writeDataForGs3(x, file, inds, col.id = 1, col.traits = 2,
  binary.traits = FALSE)

Arguments

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 writeGenosForGs3

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)

Value

nothing

Author(s)

Timothee Flutre

See Also

writeGenosForGs3, writeConfigForGs3


INRA/rgs3 documentation built on May 20, 2019, 5:24 p.m.