find.dictionaries: Finds Names and Locations of Appendix Dictionaries

Description Usage Arguments Value Author(s) See Also Examples

View source: R/find.dictionaries.R

Description

A wrapper function to identify the save location of appendix dictionaries from append.dictionary

Usage

1
find.dictionaries(..., add.path = NULL)

Arguments

...

Vector. Appendix dictionary files names (if they are known). If left empty, the function will search across all files for files in folders on your desktop that end in *.dictionary.rds. This search takes a few seconds to complete (see examples for your computer's exact timing)

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

Value

names

Returns the names of the appendix dictionary file(s) found on your computer

files

Returns the dictionary file(s) that are stored in each given path. If there is no output (e.g., character(0)), then no appendix dictionary file exists (one can be created using the append.dictionary function)

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

See Also

append.dictionary to create a new dictionary, dictionaries to identify dictionaries in SemNetDictionaries, and load.dictionaries to load multiple dictionaries

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Make a dictionary
example.dictionary <- append.dictionary(c("words","are","fun"), save.location = "envir")
 
# Dictionary can now be found
find.dictionaries("example")

# No appendix dictionaries found
find.dictionaries()

# For your computer's timing to complete search
t0 <- Sys.time()
find.dictionaries()
Sys.time() - t0

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