This function creates a data.frame with features based on a text vector
textFeats(text, auto = TRUE, contains = NA, prc = FALSE)
Character vector
Boolean. Auto create some useful parameters?
Character vector. Which columns do you wish to add with a contains (counter) string validator?
Boolean. Also add percentage of each column compared with length?
Other Data Wrangling:
balance_data()
,
categ_reducer()
,
cleanText()
,
date_cuts()
,
date_feats()
,
dateformat()
,
formatNum()
,
formatTime()
,
holidays()
,
impute()
,
left()
,
normalize()
,
numericalonly()
,
ohe_commas()
,
ohse()
,
rbind_full()
,
removenacols()
,
removenarows()
,
replaceall()
,
right()
,
textTokenizer()
,
vector2text()
,
year_month()
,
year_week()
Other Text Mining:
cleanText()
,
replaceall()
,
sentimentBreakdown()
,
textCloud()
,
textTokenizer()
,
topics_rake()
# NOT RUN {
textFeats("Bernardo Lares")
textFeats("Bernardo Lares 123!", prc = TRUE)
textFeats("I'm 100% Lares...", contains = c("Lares", "lares"))
textFeats(c("GREAT library!!", "Have you tried this 2?", "Happy faces :D :-)"))
# }
Run the code above in your browser using DataLab