substrC: Substrings of a Character Vector (C++ Style)

Description Usage Arguments Value See Also Examples

Description

Extract substrings from a character vector in C++.

Usage

1
substrC(x, pos, len)

Arguments

x

A character vector.

pos

The start point of the substring as integer. Position indications start from 1, which is the default in R.

len

The length of the substring as integer.

Value

A character vector of the same length as 'x'.

See Also

http://www.cplusplus.com/reference/string/string/substr/, substr.

Examples

1
substrC("Hello, world!", pos = 1, len = 5)

Orcs documentation built on May 2, 2019, 2:37 a.m.