seqSplit | R Documentation |
Take a vector of strings and return a matrix with each row corresponding to a string and each column a position in those strings. If fill is set then strings are padded to an equal length. Otherwise errors out if strings are unequal length.
seqSplit(..., fill = NULL)
... |
Character vectors to turn into a matrix |
fill |
A character to fill the ends of short strings with. If NULL then all strings must be the same length. |
A matrix with a single character in each cell with rows corresponding to the number of strings and columns corresponding to the position in the string
seqSplit('AAAT','AA','ATT',fill='-')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.