| words {seqinr} | R Documentation |
Generates a vectors of all the words from a given alphabet,
with right positions varying faster, for instance if the
alphabet is (c("0","1") and the length
is 2 you will obtain c("00", "01", "10", "11")
words(length = 3, alphabet = s2c("acgt"))
length |
the number of characters in the words |
alphabet |
a vector of characters |
A vector of string whith length characters.
J.R. Lobry
citation("seqinr")
## Get all codons
words()
## Get all codons with a c g u for bases
words(alphabet = c("a", "c", "g", "u"))
## Get all tetranucleotides
words(length = 4)
## Get all dipeptides
words(length = 2, alphabet = s2c("ACDEFGHIKLMNPQRSTVWY"))