Learn R Programming

SemNetDictionaries (version 0.2.0)

find.dictionaries: Finds Names and Locations of Appendix Dictionaries

Description

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

Usage

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)

See Also

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

Examples

Run this code
# NOT RUN {
# Make a dictionary
example.dictionary <- append.dictionary(c("words","are","fun"), save.location = "envir")
 
# Dictionary can now be found
find.dictionaries("example")
# }
# NOT RUN {
# No appendix dictionaries found
find.dictionaries()

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

Run the code above in your browser using DataLab