filesstrings (version 0.4.0)

StrElemsPasted: Extract bits of a string and paste them together

Description

Extract characters - specified by their indices - from a string and paste them together

Usage

StrElemsPasted(string, indices)

Arguments

string

A string.

indices

A numeric vector of positive integers detailing the indices of the characters of string that we wish to paste together.

Value

A string.

Examples

Run this code
StrElemsPasted("abcdef", c(2, 5:6))

Run the code above in your browser using DataCamp Workspace