This function converts a Genepop file into an object with a genetic matrix (G) and a structures matrix (S).
genepop2ecogen(genefile = NULL)
genefile | Genepop file. |
---|
A list with the objects G (genetic matrix) and S (structures matrix).
# 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 # }