R/file_handling.r
genind2genalex.Rd
genind2genalex will export a genclone or genind object to a \*.csv file formatted for use in genalex.
genind2genalex( gid, filename = "", overwrite = FALSE, quiet = FALSE, pop = NULL, allstrata = TRUE, geo = FALSE, geodf = "xy", sep = ",", sequence = FALSE )
gid | a genclone or genind object. |
---|---|
filename | a string indicating the name and/or path of the file you wish
to create. If this is left unchanged, the results will be saved in a
temporary file and a warning will be displayed for six seconds before the
file is written. This process should give you time to cancel the process
and choose a file path. Otherwise, the name of the file is returned, so you
can copy that to a file of your choice with |
overwrite |
|
quiet |
|
pop | a character vector OR formula specifying the population factor.
This can be used to specify a specific subset of strata or custom
population factor for the output. Note that the |
allstrata | if this is |
geo |
|
geodf |
|
sep | a character specifying what character to use to separate columns. Defaults to ",". |
sequence | when |
The the file path or connection where the data were written.
If your data set lacks a population structure, it will be coded in the new file as a single population labeled "Pop". Likewise, if you don't have any labels for your individuals, they will be labeled as "ind1" through "indN", with N being the size of your population.
read.genalex()
, clonecorrect()
, genclone, genind
Zhian N. Kamvar
#> Extracting the table ... Writing the table to ~/Documents/nancycats.csv ... Done.#> [1] "~/Documents/nancycats.csv"# }