This function creates four data frames (XY.txt, NAMES.txt, P.txt, G.txt) in the indicated directory (default: working directory), which can be loadedin Geneland.

ecogen2geneland(eco, dir = "", ncod = NULL, ploidy = 2)

Arguments

eco

Object of class "ecogen"

dir

output path. Default = "" (current directory).

ncod

Number of digits coding each allele (e.g., 1: x, 2: xx, 3: xxx, etc.).

ploidy

Ploidy of the data.

Value

XY.txt Matrix with coordinates.

NAMES.txt Matrix with row names.

P.txt Matrix with phenotypic data.

G.txt Matrix with genotypic data.

Examples

# NOT RUN { data(eco.test) ecogen2geneland(eco, dir = "", ncod=1) # }