EcoGenetics (version 1.2.1-5)

spagedi2ecogen: Importing a SPAGeDi file, via conversion to ecogen

Description

This function converts a SPAGeDi file into a ecogen object

Usage

spagedi2ecogen(infile, sep = "", missCode = NULL, type = c("codominant",
  "dominant"), ...)

Arguments

infile

Path to the SPAGeDi file.

sep

Character separating alleles (codominant data). Default option is no character separating alleles.

missCode

characters to represent missing genotypes in codominant markers. If NULL, is computed as "0" times the numer of characters coding alleles.

type

Marker type: "codominant" or "dominant".

...

additional arguments passed to ecogen

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
data(eco.test)
ecogen2spagedi(eco, dir = "", pop = "pop", ndig = 1,int=2, smax=6, outName="infile.spagedi.txt")
spagedi2ecogen("infile.spagedi.txt", sep = "")
# }
# NOT RUN {

# }

Run the code above in your browser using DataCamp Workspace