x <- dna("ACGTTAGTGTAGCCGT")
# Drop the first 3 nucleotides (ACG)
seq_crop_position(x, position_in = 4)
# Crop codon between position 4 and 6
seq_crop_position(x, position_in = 4, position_out = 6)
Run the code above in your browser using DataLab