str_right: Extracts a substring from a string, starting from the...

View source: R/string_tools.R

str_rightR Documentation

Extracts a substring from a string, starting from the right-most character

Description

Extracts a substring from a string, starting from the right-most character

Usage

str_right(text, qty_characters)

Arguments

text

The string you want the get a piece of

qty_characters

If the number of characters that you wish to extract starting from the left-most character.

Value

A string

Examples

str_right(text = "A long, long time ago", qty_characters = 9)

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.