Description Usage Format Fields Methods Examples
Crossword
1 |
An R6Class
generator object for generating crosswords from word lists
letters
a character matrix representing the grid of the crossword
words
a data.frame like (tibble) storing words, their position on the grid (row, col), their length in character, their direction ("right", "down") the word and the clue
add_words(words, clues = NULL)
this method will try to add words to the crossword by placing it on the grid;
clues
is optional and should be the same length;
density()
gives back statistics on fill state of grid
to_json(pretty = FALSE)
thi exports grid and word list data to JSON for external usage; pretty
parameter determines if this is done in a human readable or more machine
efficient way
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.