Strings long strings (solution)

Exercise
Output solution
  1. How long is the sequence?
[1] 1363
  1. How many occurences of “gagg” occur in the sequence?
[1] 8
  1. What is the starting position of the first occurrence of “atta”?
[1] 74
  1. What is the GC content of the sequence?
The GC content of this sequence is 41.38%