StrElem

0th

Percentile

Extract a single character of a string, using its index.

Extract a single character of a string, using its index.

Usage
StrElem(string, index)
Arguments
string

A string.

index

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

Value

A one-character string.

Aliases
  • StrElem
Examples
StrElem("abcd", 3)
StrElem("abcd", -2)
Documentation reproduced from package filesstrings, version 0.4.0, License: GPL-3

Community examples

Looks like there are no examples yet.