Skip to content
Prev 165493 / 398506 Next

Compressing String in R

Since you only have 4 characters, you can can create a table of all
the combinations of 4 of them and this will reduce to one byte instead
of 4.  This is fine if you just want to store them.
+     c("A", "C", "G", "T"),
+     c("A", "C", "G", "T"),
+     c("A", "C", "G", "T"))
[1] "ACGATACGGCGACCACCGAGATCTACACTCTTCCCC"

        
On Wed, Dec 24, 2008 at 10:26 AM, Gundala Viswanath <gundalav at gmail.com> wrote: