cut_string: Cut string into segments

cut_stringR 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)


disprose documentation built on March 19, 2022, 2:15 a.m.