I have a DNA sequence like: cgtcgctgtttgtcaaagtcg....
cgtcgctgtttgtcaaagtcg....
that is possibly 1000+ letters long.
However, I only want to look at letters 5 to 200, f
Use the substring function:
> tmp.string <- paste(LETTERS, collapse="") > tmp.string <- substr(tmp.string, 4, 10) > tmp.string [1] "DEFGHIJ"