freq.all: Calculating allele frequencies

Description Usage Arguments Value Author(s) Examples

View source: R/freq.all.R

Description

This function calculates allele frequencies from a vector of numbers of individuals of each genotype at one locus.

Usage

1

Arguments

N

Vector (1-D array) giving the number of individuals of each genotype, ordered in the standard way (see description in FourPopMonoecious)

Value

A vector of allele frequencies.

Author(s)

Marco Andrello

Examples

1
2
N <- c(30,50,20) # Means that there are 30 A1A1, 50 A1A2 AND 20 A2A2
freq.all(N)       # The frequency of A1 is 0.55 and the frequency of A2 is 0.45 

MarcoAndrello/MetaPopGen_0.0.8 documentation built on May 25, 2019, 12:23 p.m.