substr {stringr} R Documentation

Substrings of a Character Vector

Description


Extract or replace substrings in a character vector.

Usage

substr(x, start, stop);

Arguments

x

a character vector.

start

integer. The first element To be replaced. [as integer]

stop

integer. The last element to be replaced. [as integer]

Details

Authors

SMRUCC genomics Institute

Value

For substr, a character vector of the same length and with the same attributes as x (after possible coercion).

clr value class

Examples


[Package stringr version 2.33.856.6961 Index]