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

View source: R/RcppExports.R

substrCR Documentation

Substrings of a Character Vector (C++ Style)

Description

Extract substrings from a character vector in C++.

Usage

substrC(x, pos, len)

Arguments

x

A character vector.

pos

The start point of the substring as integer. Position indications start from 1L, 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

https://cplusplus.com/reference/string/string/substr/, substr().

Examples

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


Orcs documentation built on Jan. 6, 2023, 5:14 p.m.