Skip to contents

Equivalent of right in SQL; takes the specified number of characters from the right hand side of a string.

Usage

right(x, n = 1)

Arguments

x

a string or vector of strings

n

integer. Number of characters you want to extract from the string. Defaults to 1.