seqVectorDinucleotideFrequency {XNAString} | R Documentation |
seqVectorDinucleotideFrequency function calculates frequency for strings vector
seqVectorDinucleotideFrequency(unique_sets, seq_vec, as.prob)
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 |
matrix - each row denotes frequency for a specific string of vector
seqVectorDinucleotideFrequency(c("AB", "BA", "CD"), c("ABABAB", "ABABCD"), as.prob = FALSE)