load.dictionaries {SemNetDictionaries} | R Documentation |
Load Dictionaries
Description
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
Usage
load.dictionaries(..., add.path = NULL)
Arguments
... |
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
|
Value
Returns a vector of unique words that have been combined and alphabetized from the specified dictionaries
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
Examples
# 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")