Add a word to a word matrix

add_word(x, word = "finding", must_intersect = FALSE, shape_matrix = NULL)

Arguments

x

word matrix

word

the word to add (character/scalar)

must_intersect

force the added word to intersect with >1 word (logical/scalar)

shape_matrix

a binary matrix generated from a call to image_matrix

Value

word matrix with word added (if possible)