Learn R Programming

lares (version 4.7)

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 = 1)

Arguments

string

String or Vector

n

Integer. How many characters from right to left?

See Also

Other Data Wrangling: balance_data, calibrate, categ_reducer, cleanText, date_feats, dateformat, formatNum, formatTime, holidays, impute, left, normalize, numericalonly, ohse, one_hot_encoding_commas, rbind_full, removenacols, removenarows, replaceall, textFeats, textTokenizer, vector2text, year_month, year_week