Description Usage Arguments Value Examples
Remove words in dictionary from "character"
string
1 | filter_text(x, d)
|
x |
|
d |
dictionary of commonly used words in the English language (e.g., |
a vector of "character"
strings excluding words found in
common word dictionary
1 2 3 4 5 6 | data("common_word_dictionary")
x <- "Hello, my name is Shan Sabri! less common words are: cells, differentation, reprogramming"
x <- strip_punctuation(x)
dictionary <- as.vector(dictionary$V1[1:5000])
filter_text(x, d = dictionary)
# # [1] "shan" "sabri" "cells" "differentation" "reprogramming"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.