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 "*.dictionary" (see examples)

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 "choose" to open an interactive directory explorer

dictionaries will identify dictionaries in the SemNetDictionaries package

find.dictionaries will identify dictionaries on your computer

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")


[Package SemNetDictionaries version 0.2.0 Index]