Learn R Programming

disprose (version 0.1.6)

cut_string: 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

Value

Data frame with segment size, start and end point, segment string.

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.

Examples

Run this code
# NOT RUN {
cut_string (string = "aaatttttttccgc", size = 12:14)

# }

Run the code above in your browser using DataLab