genepop_hzar | R Documentation |
Function to convert Genepop to the R package HZAR.
genepop_hzar(genepop, distances, path)
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). |
distances |
A dataframe or path to a text file with your distances between populations. Should contain 2 columns - Populations and Distances.There should be the same number of populations as in the Genepop file. |
path |
the filepath and filename of output. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.