cut_string {disprose} | R Documentation |
Cut string into segments
Description
Cuts character string into segments of given size.
Usage
cut_string(string, size)
Arguments
string |
character string; vector of length 1 |
size |
integral; vector of length of segments |
Details
This function works with one string only.
Segments are cut from start to end of a string.
size
might be a vector of any length, all possible variants will be cut.
Value
Data frame with segment size, start and end point, segment string.
Author(s)
Elena N. Filatova
Examples
cut_string (string = "aaatttttttccgc", size = 12:14)
[Package disprose version 0.1.6 Index]