genepop_detective: Explore Genepop data structure.

View source: R/genepop_detective.R

genepop_detectiveR Documentation

Explore Genepop data structure.

Description

Function returns Genepop file meta-data.

Usage

genepop_detective(genepop, variable = "Pops")

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).

variable

data to be returned Four options default = "Pops" "Pops" = vector of population names. "PopNum" = dataframe of population names and counts. "Inds" = vector of sample IDs. "Loci" = vector of Loci. "Allele" = vector of allele values.


rystanley/genepopedit documentation built on June 27, 2023, 11:33 p.m.