Learn R Programming

poppr (version 1.0.5)

read.genalex: Importing data from genalex formatted *.csv files.

Description

read.genalex will read in a genalex-formatted file that has been exported in a comma separated format and will parse most types of genalex data. The output is a genind object.

Usage

read.genalex(genalex, ploidy = 2, geo = FALSE, region = FALSE)

Arguments

genalex
a *.csv file exported from genalex
ploidy
indicate the ploidy of the dataset
geo
indicates the presence of geographic data in the file.
region
indicates the presence of regional data in the file.

Value

See Also

clonecorrect, genind

Examples

Run this code
Aeut <- read.genalex(system.file("files/rootrot.csv", package="poppr"))

genalex2 <- read.genalex("genalex2.csv", geo=TRUE)
# A genalex file with geographic coordinate data.

genalex3 <- read.genalex("genalex3.csv", region=TRUE)
# A genalex file with regional information.

genalex4 <- read.genalex("genalex4.csv", region=TRUE, geo=TRUE)
# A genalex file with both regional and geographic information.

Run the code above in your browser using DataLab