seqVectorDinucleotideFrequency {XNAString} | R Documentation

## seqVectorDinucleotideFrequency function calculates frequency for strings vector

### Description

seqVectorDinucleotideFrequency function calculates frequency for strings vector

### Usage

    seqVectorDinucleotideFrequency(unique_sets, seq_vec, as.prob)

### Arguments

`unique_sets` | string vector of double letters -these letters pose column names
`seq_vec` | vector of strings (or characters) - frequency will be calculated for this vector
`as.prob` | logical - if TRUE frequency returned as probability of occurence

### Value

matrix - each row denotes frequency for a specific string of vector

### Examples

    seqVectorDinucleotideFrequency(c("AB", "BA", "CD"),
                                             c("ABABAB", "ABABCD"),
                                             as.prob = FALSE)

[Package XNAString version 1.2.2 Index]