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

View source: R/percent_poly.R

percent_polyR Documentation

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

Description

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

Usage

percent_poly(genind)

Arguments

input.file

A genind object

Examples

 ## 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 April 19, 2024, 7:24 a.m.