echoDictionaryEntry: Print All Dictionary Entries Associated With a Particular...

Description Usage Arguments Value Examples

Description

This function returns the values or keys associated with the opposite value entered, e.g., if you enter a key, the function will return all of its values, and vice versa.

Usage

1
echoDictionaryEntry(mydic, key = "", val = "")

Arguments

mydic

A data.frame with columns "key" and "val"

key

A search value for the "key" column

val

A search value for the "val" column

Value

This function returns a vector of response values

Examples

1
2
testdic <- data.frame(key=c("<key1>", "<key2>"), val=c("a", "b"), stringsAsFactors=F)
echoDictionaryEntry(testdic, "key1")

ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.