Learn R Programming

lares (version 4.7)

left: Left: First n characters

Description

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

Usage

left(string, n = 1)

Arguments

string

String or Vector

n

Integer. How many characters from left to right?

See Also

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