normalise: Normalise a frequency database

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Scales a frequency database so that allele frequencies sum up to one.

Usage

1
normalise(x, ms = NULL)

Arguments

x

a freqt object

ms

a marker or a marker vector. If not provided, all markers are scaled.

Value

a scaled version of the given frequency database

Examples

1
2
3
4
5
n <- normalise(ft_popstr_europe)

# this is useful to check, but, in general, you should not
# depend on the internal structure of a freqt object
rowSums(n$TABLE, na.rm = TRUE)

knifecake/fafreqs documentation built on March 13, 2020, 11:53 p.m.