library(tibble)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

anagram

The goal of anagram is to retrieve anagrams of a word from a list of english words.

Installation

You can install development version from GitHub with:

# install.packages("devtools")
devtools::install_github("romainfrancois/anagram")

Example

The main function is anagrams

library(anagram)
anagrams("taste")

The r emo::ji("package") also has the list of english words as a vector

sample( english, 10 )  

and a tibble of anagram data

library(dplyr)
data_english %>% 
  filter( n_anagrams == 4) %>% 
  sample_n(10)


romainfrancois/anagram documentation built on May 31, 2019, 2:27 p.m.