| left | R Documentation |
This functions lets the user extract the first or last n characters of a string or vector of strings.
left(string, n = 1)
right(string, n = 1)
string |
String or Vector. |
n |
Integer. How many characters starting on right/left? |
Character. Trimmed strings.
Other Data Wrangling:
balance_data(),
categ_reducer(),
cleanText(),
date_cuts(),
date_feats(),
file_name(),
formatHTML(),
holidays(),
impute(),
normalize(),
num_abbr(),
ohe_commas(),
ohse(),
quants(),
removenacols(),
replaceall(),
replacefactor(),
textFeats(),
textTokenizer(),
vector2text(),
year_month(),
zerovar()
left("Bernardo", 3)
right(c("Bernardo", "Lares", "V"), 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.