R/words.R

Defines functions words

Documented in words

words <- function(length = 3, alphabet = s2c("acgt") )
{
    if( length == 1 )
        return( alphabet )
    else
        kronecker( alphabet, words(length - 1, alphabet ), paste, sep = "")
}

Try the seqinr package in your browser

Any scripts or data that you put into this service are public.

seqinr documentation built on May 29, 2024, 6:36 a.m.