Learn R Programming

lares (version 4.4)

right: Right: Last n characters

Description

This function lets the user extract the last n characters of a string or vector of strings.

Usage

right(string, n)

Arguments

string

String or Vector

n

Integer. How many characters from right to left?