Description Usage Arguments Value Examples
View source: R/helpers_alignment.R
Generate all combinations along string seq
swapping m
characters at a time with letters defined in dictionary letters
.
Allows, for instance, to create a list of possible primers with two
mismatches.
1 | comb_along(seq, m = 2, letters = c("A", "C", "T", "G"))
|
seq |
(character) input character to permutate |
m |
(integer) number of elements to permutate at each step |
letters |
(character vector) dictionary source for combinations of elements |
(character vector) all unique combinations of permutated string
1 2 3 4 5 | comb_along("AC")
comb_along("AAA", 1)
comb_along("AAA")
comb_along("AAA", 3)
comb_along("AAAAAAAAAA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.