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

genepop2ecogen(genefile = NULL)

Arguments

genefile

Genepop file.

Value

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

Examples

# 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
# }