randDNA {RBioinf} | R Documentation |
This function generates random DNA sequences, nucleotides are sampled with frequency 0.25 each.
randDNA(n)
n |
The length of the sequence desired. |
This function generates random sequences of A, C, T and G. Real DNA is quite different, so one should not use these sequences for much other than pedagogical purposes.
A length one character vector, with n
characters randomly
chosen from A, C, T and G.
R. Gentleman
randDNA(100)