Learn R Programming

deepSNV (version 1.18.3)

RF: Relative frequencies.

Description

Convenience function to compute the relative frequencies from a matrix with absolute counts.

Usage

RF(freq, total = FALSE)

Arguments

freq
A matrix with nucleotide counts.
total
If the nucleotide counts have columns for forward and reverse direction, return each strand sepratatelu (FALSE), or add the two (TRUE).

Value

A matrix with the relative frequencies.

Examples

Run this code
data(HIVmix)
RF(test(HIVmix))[1:10,]
RF(test(HIVmix), total=TRUE)[1:10,]

Run the code above in your browser using DataLab