Learn R Programming

poppr (version 1.0.1)

genind2genalex: Exporting data from genind objects to genalex formatted *.csv files.

Description

genind2genalex will export a genind object to a *.csv file formatted for use in genalex.

Usage

genind2genalex(pop, filename = "genalex.csv",
    quiet = FALSE, geo = FALSE, geodf = "xy")

Arguments

pop
a genind object.
filename
a string indicating the name and/or path of the file you wish to create.
quiet
logical If FALSE a message will be printed to the screen.
geo
logical Default is FALSE. If it is set to TRUE, the resulting file will have two columns for geographic data.
geodf
character Since the other slot in the adegenet object can contain many different items, you must specify the name of the data frame in the other slot containing your geographic coordinates. It defaults to "xy

See Also

clonecorrect, genind

Examples

Run this code
data(nancycats)
genind2genalex(nancycats, "~/Documents/nancycats.csv", geo=TRUE)

Run the code above in your browser using DataLab