Description Usage Arguments Details Value Author(s) References Examples
Uses the numeric position of the letters in a word to create a numeric value for a word.
1 | word_value(words, dtOut = FALSE)
|
words |
The input vector of words. |
dtOut |
Logical. Should the output be a |
The function converts the input to lowercase, removes anything that is not between the letters "a" and "z", and transliterates accented characters to their ASCII equivalent before converting the word to a numeric value.
A named numeric vector or a data.table
.
Ananda Mahto and Jota.
http://stackoverflow.com/q/36097446/1270695
1 2 3 4 | myvec <- c("and", "dad", "cat", "fox", "mom",
"add", "dan", "naive", "non-descript")
word_value(myvec)
word_value(myvec, TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.