as_wordsearch {worrrd}R Documentation

Assign an object to the 'wordsearch' class

Description

Assign an object to the 'wordsearch' class

Usage

as_wordsearch(x)

Arguments

x

an object containing wordsearch data

Value

wordsearch object: a list with the following elements:

search: a matrix representation of the wordsearch with 'positions' attribute a tibble representation of the solution words: (character/vector) clues: (character/vector) solution: a matrix representation of the wordsearch solution with 'positions' attribute a tibble representation of the solution image: image for shaping wordsearch (NULL if not provided) shape_matrix: binary matrix representation of shape (NULL if no image)


[Package worrrd version 0.1.0 Index]