genepop2ecogen: Importing a Genepop file

Description Usage Arguments Value Author(s) Examples

Description

This function converts a Genepop file into an object with a genetic matrix (G) and a structures matrix (S).

Usage

1
genepop2ecogen(genefile = NULL)

Arguments

genefile

Genepop file.

Value

A list with the objects G (genetic matrix) and S (structures matrix).

Author(s)

Leandro Roser [email protected]

Examples

1
2
3
4
5
6
7
8
## Not run: 
# ingpop, file with Genepop format in the folder "/extdata" of the package

ecopath <- paste(path.package("EcoGenetics"), "/extdata/ingpop", sep = "")
ingpop <- genepop2ecogen(ecopath)
ingpop

## End(Not run)

EcoGenetics documentation built on June 24, 2018, 5:02 p.m.