substrC | R Documentation |
Extract substrings from a character
vector in C++.
substrC(x, pos, len)
x |
A |
pos |
The start point of the substring as |
len |
The length of the substring as |
A character
vector of the same length as 'x'.
https://cplusplus.com/reference/string/string/substr/, substr()
.
substrC("Hello, world!", pos = 1, len = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.