split | R Documentation |
A sequence can be split either by passing the parameter tsize
or the
parameter sep
. If sep
is set, tsize
is ignored.
split(seq, tsize = 3, sep = NULL, regexp.sep = NULL)
seq |
Sequence as a string. |
tsize |
Tuple size. Default: 3 for codons. |
sep |
Separator, e.g. "," |
regexp.sep |
Separator as regular expression, e.g. "[, ]+" |
In case of tsize
only tuples of exact this size are returned.
If the last tuple has less than tsize
bases it is skipped.
On the other hand, if set
is used, all tuples are returned. There
is also no check if the tuples have the same size.
Vector of tuples. Each tuple is a string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.