Skip to contents

Draw words for one document

Usage

draw_words(Ni, theta, phi)

Arguments

Ni

length of document i

theta

theta_i, topic distribution for document i

phi

word distribution for all topics

Value

Document-term matrix (single document), as a tibble, with columns word and n