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 March 31, 2023, 3:05 p.m.