Description Usage Arguments Details See Also Examples
scrabble
finds words that can be constructed from the
specified set of letters.
anagram
finds words that are
permutations of the specified set of letters. Usually this set of letters
is a word itself.
1 2 3 4 |
allow |
characters allowed to use to construct words. |
model |
pattern that a word should match. Consists of letters and
unknown characters specifications. Dot |
ban |
characters not allowed to fill gaps in a word. |
words |
vector of words to search within. By default is set to
|
scrabble
and anagram
are functions built on top of the
find_word
function with parameter type
set to
"scrabble"
or "anagram"
respectively and allow
parameter moved to the first place to simplify usage (see the first
example).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Find all words that can be constructed of the "thing" word's letters
scrabble("thing")
## same as
find_word(allow = "thing", type = "s")
## take at least 4-letter words
scrabble("thing", ".{4,}")
## same as
find_word(".{4,}", "thing", type = "s")
## Pick 8 random letters and find words that can be constructed of them.
library(magrittr)
sample(letters, 8, TRUE) %>% list(letters = ., words = scrabble(.))
## Find anagrams of the word "thing"
anagram("thing")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.