get_anagrams: anagram function

Description Usage Arguments Examples

Description

This function returns all possible words within a word, scrabble style

Usage

1
get_anagrams(word, dictionary = scrabble)

Arguments

word

a word (or vector of length one with multiple characters/digits)

dictionary

which dictionary should be used to look up words? current options are 'scrabble' for the official scrabble dictionary and 'words' for a more expansive dictionary (including e.g. "mr").

Examples

1
2
3
4
data(scrabble)
perms <- get_anagrams(word = "perms", dictionary = scrabble)
length(perms)
perms

alexpavlakis/anagrammeR documentation built on May 9, 2019, 3:55 a.m.