substrC {Orcs} | R 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 |
pos |
The start point of the substring as |
len |
The length of the substring as |
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)
[Package Orcs version 1.2.3 Index]