reverse_substr: Backwards substring

View source: R/reverse_substr.R

reverse_substrR Documentation

Backwards substring

Description

reverse_substr performs substr from back to front

Usage

reverse_substr(string, start, stop)

Arguments

string

vector of strings to be substringed

start

starting position (from end of string)

stop

stopping position (from end of string)

Value

Vector of strings the same length as string

Examples

x <- 'abcd'
reverse_substr(x, 1, 3)


amorris28/amorris documentation built on Nov. 24, 2022, 6:39 a.m.