Description Usage Arguments Value Description Q-Words Author(s) Examples
qMap
maps numbers to Q-words, or Q-words to their index in (0, 1023).
1 | qMap(x)
|
x |
(character or numeric) A vector. |
(numeric or character) A vector of indices, Q-words, or NA of the same length as the input.
qMap
accepts strings that are matched to Q-word
indices or NA, or numbers that are matched to Q-words or NA. The returned
vector has the same length as the input. Numbers that are not in (0, 1023)
return NA. Strings that are not a Q-word return NA. qMap(0)
is
"aims", qMap(1023)
is "zone". Note: the first Q-word has index 0,
since it represents the bit-pattern "0000000000".
A table of 1,024 four-letter words is encoded in this function. Four-letter English words were chosen and manually refined to yield short, unique labels that:
are monosyllabic,
are easy to spell and pronounce,
are individually not offensive,
are unlikely to be offensive in random combination,
are in common use,
avoid homophones and consonant clusters,
do not contain jargon, intentional misspellings, acronyms or overly specialized technical or sports terms.
The table is alphabetically sorted.
(c) 2019 Boris Steipe,
licensed under MIT (see file LICENSE
in this package).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.