load.dictionaries: Load Dictionaries

Description Usage Arguments Value Author(s) Examples

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

1
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

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

AlexChristensen/SemNetDictionaries documentation built on Feb. 15, 2022, 2:30 p.m.