Skip to contents

Extract last n elements of a string

Usage

my_right(x, num)

Arguments

x

a character vector of any length

num

an integer - the number of elements to extract

Value

a character vector