# Constructing an example sequence in the usual way:
sq_1 <- sq("CTGA")
# Using a method for character vector:
sq_2 <- as.sq("CTGA")
# Checking that both objects are identical:
identical(sq_1, sq_2)
Run the code above in your browser using DataLab