Learn R Programming

lares (version 4.7)

replaceall: Replace Values With

Description

This function lets the user replace all specific values in a vector or data.frame into another value. If replacing more than one value, order matters so they will be replaced in the same order that you pass them to the function.

Usage

replaceall(df, original, change, quiet = TRUE)

Arguments

df

Data.frame or Vector

original

String or Vector. Original text you wish to replace

change

String or Vector. Values you wish to replace the originals with

quiet

Boolean. Keep quiet? (or print replacements)

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, right, textFeats, textTokenizer, vector2text, year_month, year_week

Other Text Mining: cleanText, sentimentBreakdown, textCloud, textFeats, textTokenizer