seqAlphabetFrequency {XNAString} | R Documentation

## Create set of functions and methods to calculate alphabet frequency in base, sugar and backbone slots

### Description

Create set of functions and methods to calculate alphabet frequency in base, sugar and backbone slots

### Usage

    seqAlphabetFrequency(unique_letters, seq, as.prob)

### Arguments

`unique_letters` | string (or character) - these letters pose column names
`seq` | string (or character) - frequency is calculated for this string
`as.prob` | logical - if TRUE frequency returned as probability of occurrence

### Value

numeric - named numeric vector

### Examples

    seqAlphabetFrequency(c("A", "B", "C"), c("AABA"), as.prob = FALSE)

[Package XNAString version 1.2.2 Index]