Learn R Programming

poppr (version 1.1.5)

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

Description

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

Usage

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

Arguments

pop
a genclone or 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".
sep
a character specifying what character to use to separate columns. Defaults to ",".

See Also

clonecorrect, genclone or genind

Examples

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

Run the code above in your browser using DataLab