Description Usage Arguments Value
Generates cleaned and combined data for wordcloud use. Has functionality to combine words by word stem into the most common full English word appearing in the input, as well as to spell check the inputted text data.
1 2 |
txt |
a character or character vector, the text data you wish to use |
spellcheck |
logical, whether or not to spellcheck the input. Defaults to |
combine |
logical, whether or not to stem and combine the input. Defautls to |
name |
a character, the name of the folder to output the data to. Defaults to |
location |
a character, the file directory in which to place the folder. Defaults to the current working directory. |
keepWords |
a character vector, the words to replace with a custom replacement |
replaceWords |
a character vector, the replacements |
mergekeep |
a character vector of words to force merge into specific groups |
mergereplace |
a character vector of destinations for the force-merged words |
bestkeep |
a character vector of identified best sources to force to a new name |
bestreplace |
a character vector of new names to send the specified sources |
No output value is created. Several files are written to the specified location under the specified folder name:
cleanedOEs.txt |
A text file containing each cleaned, stemmed, and origin-matched word repeated the same number of times as its sources appear in the input text. This file is intended to be easily copied and pasted into Wordle or any other word cloud generator. |
stem_map_with_freqs.csv |
A csv file, which can be openned in Microsoft Excel, that contains each outputted matched word, the stem used to match to it, all the source words found in the cleaned input that stemmed to it, and combined frequency of all the sources. |
made_spelling_replacements.csv |
If |
custom_spelling_replacements.csv |
The custom replacements provided. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.