spagedi2ecogen: Importing a SPAGeDi file, via conversion to ecogen

Description Usage Arguments Author(s) Examples

Description

This function converts a SPAGeDi file into a ecogen object

Usage

1
2
3
4
5
6
7
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

Author(s)

Leandro Roser learoser@gmail.com

Examples

1
2
3
4
5
6
7
## 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 = "")

## End(Not run)

EcoGenetics documentation built on July 8, 2020, 5:46 p.m.