seqSplit: Convenience function for binding a bunch of sequences...

View source: R/plotDNA.R

seqSplitR Documentation

Convenience function for binding a bunch of sequences together

Description

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.

Usage

seqSplit(..., fill = NULL)

Arguments

...

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.

Value

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

Examples

seqSplit('AAAT','AA','ATT',fill='-')

sherrillmix/dnaplotr documentation built on Oct. 29, 2022, 4:42 p.m.