# Generate complementary sequence in same direction (5' to 3')
generate_complement("ATGCG", reverse = FALSE)
# Generate complementary sequence in reverse direction (3' to 5')
generate_complement("ATGCG", reverse = TRUE)
Run the code above in your browser using DataLab