EcoGenetics (version 1.2.1-5)

genepop2ecogen: Importing a Genepop file

Description

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

Usage

genepop2ecogen(genefile = NULL)

Arguments

genefile

Genepop file.

Value

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

Examples

Run this code
# 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
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace