percent_poly: This function calculates the percent polymorphic loci per...

Description Usage Arguments Examples

View source: R/percent_poly.R

Description

This function calculates the percent polymorphic loci per population from a genind object

Usage

1
percent_poly(genind)

Arguments

input.file

A genind object

Examples

1
2
3
4
5
6
7
8
 ## set directory for results to be written
 setwd("path/to/working/directory")

 ## load the example data
 data(rainbow.genind)

 # calculate the percent polymorphic loci per population
 res <- percent_poly(rainbow.genind)

pygmyperch/melfuR documentation built on Oct. 10, 2020, 1:23 p.m.