str_extract_char: Extract a specific character from a string

View source: R/str_extract_char.r

str_extract_charR Documentation

Extract a specific character from a string

Description

Extract a specific character from a string.

Usage

str_extract_char(string, char = 1)

Arguments

string

A character vector

char

A integer single value (default = 1), that will be the character position to be extracted

Value

A character vector.

Examples


str_extract_char(string = "abcdef")

str_extract_char(string = "abcdef", char = 2)



vbfelix/relper documentation built on Jan. 28, 2025, 12:15 p.m.