Learn R Programming

worrrd (version 0.1.0)

as_wordsearch: Assign an object to the `wordsearch` class

Description

Assign an object to the `wordsearch` class

Usage

as_wordsearch(x)

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)

Arguments

x

an object containing wordsearch data