Learn R Programming

DNAprofiles (version 0.3.1)

get.freqs: Retrieve the allele frequencies of a profiles object

Description

A profiles object is an integer matrix with two columns per marker. This function extracts the allele frequencies from the attributes of the profiles object.

Usage

get.freqs(x)

Arguments

x
profiles object

Examples

Run this code
data(freqsNLsgmplus)
           x<- sample.profiles(1,freqsNLsgmplus)
           stopifnot(identical(get.freqs(x),freqsNLsgmplus))

Run the code above in your browser using DataLab