genepop_fstat: Convert Genepop to FSTAT format.

View source: R/genepop_fstat.R

genepop_fstatR Documentation

Convert Genepop to FSTAT format.

Description

Function to convert Genepop to FSTAT

Usage

genepop_fstat(genepop, path = NULL, addworkspace = FALSE)

Arguments

genepop

the genepop data to be manipulated. This can be either a file path or a dataframe read in with tab separation, header=FALSE , quote="", and stringsAsFactors=FALSE. This will be the standard genepop format with the first n+1 rows corresponding to the n loci names, or a single comma delimited row of loci names followed by the locus data. Populations are separated by "Pop". Each individual ID is linked to the locus data by " , " (space,space space) and is read in as as a single row (character).

path

the filepath and filename of output.

addworkspace

logical statement defining whether the converted data should be saved as a file specified in the path (default) argument or whether it should be returned to the workspace if returned to the workspace the object will be called "Output_fstat".


rystanley/genepopedit documentation built on June 14, 2024, 5:34 p.m.