read.genepop {ARES}R Documentation

Imports a genepop file

Description

Imports a genepop formatted file.

Usage

read.genepop( filename = "butterfly_borneo" )

Arguments

filename path (absolute or relative) & filename of genepop file to be read.

Value

The function returns an object that holds information regarding the genepop file. The output can be used by the function aresCalc.

Author(s)

Scott Davis, based on code by Emiel van Loon

References

Raymond M, Rousset F (1995) GENEPOP (version 1.2): population genetics software for exact tests and ecumenicism. J. Heredity, 86, 248-249.

http://wbiomed.curtin.edu.au/genepop/help_input.html

Examples


# import of genepop file butterfly_borneo
path <- system.file( package = 'ARES' );
file <- paste( list( path, '/data/butterfly_borneo' ), collapse="" );

butterfly_data <- read.genepop( filename=file );

# select fourth population from the imported genepop file
I298 <- butterfly_data[[4]];

# the data is accessed through the attribute 'output'
output <- aresCalc(I298@output, bootsize=4, maxsize=100);
aresPlot(output, T ='I2, 1998');

# note!!! this example uses a very small bootstrap size (for speed of display).
#  A more realistic size is bootsize=200.


[Package ARES version 1.2-3 Index]