seqDinucleotideFrequency {XNAString} | R Documentation

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

### Description

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

### Usage

    seqDinucleotideFrequency(unique_sets, seq, as.prob)

### Arguments

`unique_sets` | string vector of double letters -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

    seqDinucleotideFrequency(c("AB", "BA", "CD"),
                                       "ABABAB",
                                        as.prob = FALSE)
    seqDinucleotideFrequency(c("GC", "CG", "CC"),
                             "GCCG",
                             as.prob = FALSE)

[Package XNAString version 1.2.2 Index]