Description Usage Arguments Value Author(s) Examples
A wrapper function to load dictionaries into
the 'SemNetCleaner' package. Searches for dictionaries in R
's global
environment, the SemNetDictionaries
package, and on your computer.
Outputs a unique word list that is combined from all dictionaries entered
in the dictionary
argument
1 | load.dictionaries(..., add.path = NULL)
|
... |
Character. Dictionaries to load Dictionaries in your global environment
MUST be objects called |
add.path |
Character.
Path to additional dictionaries to be found.
DOES NOT search recursively (through all folders in path)
to avoid time intensive search.
Set to
|
Returns a vector of unique words that have been combined and alphabetized from the specified dictionaries
Alexander Christensen <alexpaulchristensen@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Find dictionaries to load
dictionaries()
# Load "animals" dictionary
load.dictionaries("animals")
# Create a dictionary
new.dictionary <- append.dictionary("words", "are", "fun")
# Load created dictionary
load.dictionaries("new")
# Load animals and new dictionary
load.dictionaries("animals", "new")
# Single letter dictionary
load.dictionaries("d")
# Multiple letters dictionary
load.dictionaries("a", "d")
# Category and letters dictionary
load.dictionaries("animals", "a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.