Learn R Programming

filesstrings (version 3.1.1)

str_elem: Extract a single character from a string, using its index.

Description

See strex::str_elem().

Usage

str_elem(string, index)

elem(string, index)

Arguments

string

A character vector.

index

An integer. Negative indexing is allowed as in stringr::str_sub().