I\'m looking for a faster way to calculate GC content for DNA strings read in from a FASTA file. This boils down to taking a string and counting the number of times that the let
A one liner:
table(strsplit(toupper(a), '')[[1]])